From 7543a9999d97b033a62d64b34e193332ac734dc7 Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Sat, 20 Jan 2024 01:24:03 +0100 Subject: [PATCH] add a module that pins the registry or something according to fufexan this supposedly does something https://github.com/fufexan/dotfiles/blob/483680e121b73db8ed24173ac9adbcc718cbbc6e/system/nix/default.nix#L18-L19 --- modules/other/default.nix | 1 + modules/other/pin-registry.nix | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 modules/other/pin-registry.nix diff --git a/modules/other/default.nix b/modules/other/default.nix index d65db18..1b288ca 100644 --- a/modules/other/default.nix +++ b/modules/other/default.nix @@ -1,5 +1,6 @@ _: { imports = [ + ./pin-registry.nix ./preserve-system.nix ./xdg.nix ]; diff --git a/modules/other/pin-registry.nix b/modules/other/pin-registry.nix new file mode 100644 index 0000000..b14db77 --- /dev/null +++ b/modules/other/pin-registry.nix @@ -0,0 +1,7 @@ +{ + inputs, + lib, + ... +}: { + nix.registry = lib.mapAttrs (_: v: { flake = v; }) inputs; +}