summaryrefslogtreecommitdiff
path: root/modules/shared/defaults/nix.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/shared/defaults/nix.nix')
-rw-r--r--modules/shared/defaults/nix.nix12
1 files changed, 5 insertions, 7 deletions
diff --git a/modules/shared/defaults/nix.nix b/modules/shared/defaults/nix.nix
index 8ecdfe1..c4cc2c3 100644
--- a/modules/shared/defaults/nix.nix
+++ b/modules/shared/defaults/nix.nix
@@ -14,10 +14,6 @@ let
|| lib.versionAtLeast config.nix.package.version "2.90.0"; # but not in lix yet
hasAlwaysAllowSubstitutes = lib.versionAtLeast config.nix.package.version "2.19.0";
-
- # Use systemd-tmpfiles on Linux
- nixPathFromInput =
- name: input: "${name}=${if isLinux then "/etc/nix/inputs/${name}" else input.outPath}";
in
{
config = lib.mkMerge [
@@ -37,14 +33,16 @@ in
options = lib.mkDefault "--delete-older-than 2d";
};
+ registry = lib.mapAttrs (lib.const (flake: {
+ inherit flake;
+ })) inputs;
+
# See comment below
- nixPath = lib.mapAttrsToList nixPathFromInput inputs;
+ nixPath = lib.mapAttrsToList (name: lib.const "${name}=flake:${name}") inputs;
};
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;
};
}