summary refs log tree commit diff stats
path: root/system/settings
diff options
context:
space:
mode:
Diffstat (limited to 'system/settings')
-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;
+        };
+
+      };
   };
 }