From b5bcdf72cbc998550bf55af1842fe65f8c9ef0bf Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 2 Mar 2025 15:18:43 +0100 Subject: Revert "Switch back to flakes" This reverts commit c0384c43821474d28af1d9696ceb473a0d769292. --- system/settings/configuration/nix.nix | 12 +----------- system/settings/pin.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 11 deletions(-) create mode 100644 system/settings/pin.nix (limited to 'system/settings') diff --git a/system/settings/configuration/nix.nix b/system/settings/configuration/nix.nix index 5a9b4996..48c6b4ef 100644 --- a/system/settings/configuration/nix.nix +++ b/system/settings/configuration/nix.nix @@ -3,6 +3,7 @@ , lib , ... }: { + imports = [ ../pin.nix ]; nix = { package = pkgs.lix; settings = { @@ -30,16 +31,5 @@ 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; - }; - }; }; } diff --git a/system/settings/pin.nix b/system/settings/pin.nix new file mode 100644 index 00000000..2ff2e773 --- /dev/null +++ b/system/settings/pin.nix @@ -0,0 +1,14 @@ +let + inherit (import ../../sources.nix) sources; +in +{ + nix = { + nixPath = [ + "nixpkgs=flake:nixpkgs" + ]; + registry.nixpkgs.to = { + type = "path"; + path = sources.nixpkgs; + }; + }; +} -- cgit 1.4.1