Set NIX_PATH to updateable value

This commit is contained in:
Charlotte Van Petegem 2020-09-23 12:17:44 +02:00
parent f062948178
commit 397c0e222f

View file

@ -21,6 +21,14 @@
modules = [
home-manager.nixosModules.home-manager
(./. + "/machines/${hostname}")
({ pkgs, ... }: {
environment.etc."nixpkgs".source = (pkgs.runCommandNoCC "nixpkgs" { } ''
cp -r ${nixpkgs} $out
chmod 700 $out
echo "${nixpkgs.rev}" > $out/.version-suffix
'');
nix.nixPath = [ "nixpkgs=/etc/nixpkgs" ];
})
];
};
in