diff options
author | Alan Pearce | 2025-01-12 16:29:36 +0100 |
---|---|---|
committer | Alan Pearce | 2025-01-12 16:29:36 +0100 |
commit | 7c8cbc1d0743a192ce8145539830fcbc3beb2fd2 (patch) | |
tree | fd3af9e16971e1dbe83ad1889d2139c612c61028 /system/settings/configuration/nix.nix | |
parent | 54e249599876641185a2ed751a7e951f745df659 (diff) | |
download | nixfiles-7c8cbc1d0743a192ce8145539830fcbc3beb2fd2.tar.lz nixfiles-7c8cbc1d0743a192ce8145539830fcbc3beb2fd2.tar.zst nixfiles-7c8cbc1d0743a192ce8145539830fcbc3beb2fd2.zip |
nix: pin nixpkgs on nixos/nix-darwin
Diffstat (limited to 'system/settings/configuration/nix.nix')
-rw-r--r-- | system/settings/configuration/nix.nix | 16 |
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; + }; + + }; }; } |