This commit is contained in:
zuckerberg 2021-06-04 15:32:29 -04:00
parent ba77fc7950
commit d3c82cbba2
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
{ lib, pkgs, config, ... }: { lib, pkgs, config, inputs, ... }:
with lib; with lib;
let let
cfg = config.nix.flakes; cfg = config.nix.flakes;
@ -13,6 +13,9 @@ in {
extraOptions = '' extraOptions = ''
experimental-features = nix-command flakes experimental-features = nix-command flakes
''; '';
# pin nixpkgs for system commands such as "nix shell"
registry.nixpkgs.flake = inputs.nixpkgs;
}; };
}; };
} }

View File

@ -14,11 +14,8 @@
modules = [ modules = [
path path
simple-nixos-mailserver.nixosModule simple-nixos-mailserver.nixosModule
( { pkgs, ... }: {
# pin nixpkgs for system commands such as "nix shell"
nix.registry.nixpkgs.flake = nixpkgs;
} )
]; ];
specialArgs = { inherit inputs; };
}; };
in in
{ {