diff options
| author | Daiderd Jordan <daiderd@gmail.com> | 2017-10-01 16:26:13 +0200 |
|---|---|---|
| committer | Daiderd Jordan <daiderd@gmail.com> | 2017-10-01 16:37:51 +0200 |
| commit | d3941dc5ecbb1582fa6df90283f072bd8c1f2134 (patch) | |
| tree | bc8992249119a59e37d438e30a456448bde805d1 /modules | |
| parent | c8cc548dfc53cd2f100d64cab3c50e86486e2fd0 (diff) | |
nix: use old default for nix.nixPath with system.stateVersion = 1
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/nix/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/nix/default.nix b/modules/nix/default.nix index eea899c..c826713 100644 --- a/modules/nix/default.nix +++ b/modules/nix/default.nix @@ -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 |
