From d228743c5f2eda48dc68367e9a92713984cf147c Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Wed, 3 Jan 2024 18:15:22 -0800 Subject: [PATCH] Pin registry nixpkgs to flake input --- flake.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 6f57aae..c1a71c7 100644 --- a/flake.nix +++ b/flake.nix @@ -30,14 +30,19 @@ nixos-wsl, intake, intake-sources, - }: { + }@inputs: { nixosModules.beatific = import ./modules/beatific.nix; - nixosConfigurations = { + nixosConfigurations = let + pinNixpkgs = nixpkgs: { ... }: { + nix.registry.nixpkgs.to = { type = "path"; path = nixpkgs; }; + }; + in { backyard = nixpkgs-2311.lib.nixosSystem { system = "x86_64-linux"; modules = [ self.nixosModules.beatific + (pinNixpkgs nixpkgs-2311) ./machine/backyard ]; }; @@ -45,6 +50,7 @@ system = "aarch64-linux"; modules = [ self.nixosModules.beatific + (pinNixpkgs nixpkgs-2305) ./machine/catacomb ]; }; @@ -54,6 +60,7 @@ self.nixosModules.beatific intake.nixosModules.default intake-sources.nixosModules.default + (pinNixpkgs nixpkgs-2305) ./machine/empyrean ]; }; @@ -61,6 +68,7 @@ system = "x86_64-linux"; modules = [ self.nixosModules.beatific + (pinNixpkgs nixpkgs-2311) ({ ... }: { environment.systemPackages = [ nixpkgs-2311.legacyPackages."i686-linux".gperftools ]; }) @@ -78,6 +86,7 @@ system = "x86_64-linux"; modules = [ self.nixosModules.beatific + (pinNixpkgs nixpkgs-2305) ./machine/unfolder ]; };