mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
nix: use old default for nix.nixPath with system.stateVersion = 1
This commit is contained in:
parent
c8cc548dfc
commit
d3941dc5ec
2 changed files with 8 additions and 1 deletions
|
@ -11,7 +11,8 @@
|
|||
programs.nix-index.enable = true;
|
||||
|
||||
2017-07-23
|
||||
- darwin entry in the default nix.nixPath was removed
|
||||
- darwin entry in the default nix.nixPath was removed for
|
||||
system.stateVersion > 1
|
||||
|
||||
Use a channel for nix-darwin or configure nix.nixPath
|
||||
|
||||
|
|
|
@ -304,6 +304,12 @@ in
|
|||
nix.binaryCaches = mkAfter [ https://cache.nixos.org/ ];
|
||||
nix.binaryCachePublicKeys = mkAfter [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
|
||||
|
||||
nix.nixPath = mkIf (config.system.stateVersion < 2) (mkDefault
|
||||
[ "darwin=$HOME/.nix-defexpr/darwin"
|
||||
"darwin-config=$HOME/.nixpkgs/darwin-configuration.nix"
|
||||
"/nix/var/nix/profiles/per-user/root/channels"
|
||||
]);
|
||||
|
||||
environment.etc."nix/nix.conf".source = nixConf;
|
||||
|
||||
# List of machines for distributed Nix builds in the format
|
||||
|
|
Loading…
Reference in a new issue