1
1
Fork 0

beatific: Pin registry nixpkgs to flake input

This commit is contained in:
Tim Van Baak 2024-01-03 18:15:22 -08:00
parent 0fce9564f5
commit d47d87d91f
1 changed files with 11 additions and 2 deletions

View File

@ -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
];
};