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 = [
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue