From 7c8cbc1d0743a192ce8145539830fcbc3beb2fd2 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 12 Jan 2025 16:29:36 +0100 Subject: nix: pin nixpkgs on nixos/nix-darwin --- system/settings/configuration/nix.nix | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'system/settings') 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; + }; + + }; }; } -- cgit 1.4.1