Set NIX_PATH to updateable value
This commit is contained in:
parent
f062948178
commit
397c0e222f
1 changed files with 8 additions and 0 deletions
|
@ -21,6 +21,14 @@
|
||||||
modules = [
|
modules = [
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
(./. + "/machines/${hostname}")
|
(./. + "/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
|
in
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue