diff options
| author | seth <[email protected]> | 2024-10-30 21:20:07 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-10-30 21:22:52 -0400 |
| commit | cd83178489bdc1990d071b1f9b1a9e35c1a2faac (patch) | |
| tree | 0b91fa894e6ce1d3c8a0d190ed316166ba930408 | |
| parent | 1e72c5162e1e08dec8f98e02387e1b1061e64e82 (diff) | |
modules/nix: use path over flake for nixpkgs in `$NIX_PATH`
| -rw-r--r-- | modules/shared/defaults/nix.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/shared/defaults/nix.nix b/modules/shared/defaults/nix.nix index e5d7607..f15d81c 100644 --- a/modules/shared/defaults/nix.nix +++ b/modules/shared/defaults/nix.nix @@ -34,9 +34,16 @@ in automatic = lib.mkDefault true; options = lib.mkDefault "--delete-older-than 2d"; }; + + # See comment below + nixPath = [ "nixpkgs=${config.nixpkgs.flake.source}" ]; }; - nixpkgs.config.allowUnfree = lib.mkDefault true; + nixpkgs = { + config.allowUnfree = lib.mkDefault true; + # The `flake:` syntax in `$NIX_PATH` seems to do some weird copying on Nix 2.24 + flake.setNixPath = false; + }; } (lib.mkIf hasReplFlake { |
