summary refs log tree commit diff stats
path: root/system/settings/configuration
diff options
context:
space:
mode:
authorAlan Pearce2025-01-12 16:29:36 +0100
committerAlan Pearce2025-01-12 16:29:36 +0100
commit7c8cbc1d0743a192ce8145539830fcbc3beb2fd2 (patch)
treefd3af9e16971e1dbe83ad1889d2139c612c61028 /system/settings/configuration
parent54e249599876641185a2ed751a7e951f745df659 (diff)
downloadnixfiles-7c8cbc1d0743a192ce8145539830fcbc3beb2fd2.tar.lz
nixfiles-7c8cbc1d0743a192ce8145539830fcbc3beb2fd2.tar.zst
nixfiles-7c8cbc1d0743a192ce8145539830fcbc3beb2fd2.zip
nix: pin nixpkgs on nixos/nix-darwin
Diffstat (limited to 'system/settings/configuration')
-rw-r--r--system/settings/configuration/nix.nix16
1 files changed, 14 insertions, 2 deletions
diff --git a/system/settings/configuration/nix.nix b/system/settings/configuration/nix.nix
index 3ecd5089..b0459b16 100644
--- a/system/settings/configuration/nix.nix
+++ b/system/settings/configuration/nix.nix
@@ -1,6 +1,6 @@
-{ config
-, lib
+{ inputs
 , pkgs
+, lib
 , ...
 }: {
   nix = {
@@ -28,5 +28,17 @@
       automatic = lib.mkDefault true;
       options = lib.mkDefault "--delete-older-than 14d";
     };
+
+    registry =
+      if pkgs.stdenv.isDarwin
+      then {
+        nixpkgs.flake = inputs.nixpkgs;
+      } else {
+        nixpkgs.to = {
+          type = "path";
+          path = pkgs.path;
+        };
+
+      };
   };
 }