all repos — nixfiles @ 7c8cbc1d0743a192ce8145539830fcbc3beb2fd2

System and user configuration, managed by nix and home-manager

nix: pin nixpkgs on nixos/nix-darwin

Alan Pearce
commit

7c8cbc1d0743a192ce8145539830fcbc3beb2fd2

parent

54e249599876641185a2ed751a7e951f745df659

1 file changed, 14 insertions(+), 2 deletions(-)

jump to
M system/settings/configuration/nix.nixsystem/settings/configuration/nix.nix
@@ -1,6 +1,6 @@
-{ config -, lib +{ inputs , pkgs +, lib , ... }: { nix = {
@@ -28,5 +28,17 @@ gc = {
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; + }; + + }; }; }