maybe helpers?

This commit is contained in:
Daniel Flanagan 2024-07-31 10:19:39 -05:00
parent afa7d0a5b6
commit dbabc70e2f

View file

@ -233,7 +233,32 @@
flakeInputs = self.inputs; flakeInputs = self.inputs;
}; };
nixosConfigurations = { nixosConfigurations = let
system = {
nixpkgsInput,
modules ? [],
system ? "x86_64-linux",
}:
nixpkgsInput.lib.nixosSystem {
inherit system;
modules = modules ++ [nixosModules.common];
};
stableSystem = {
modules,
system ? "x86_64-linux",
}:
system {
nixpkgsInput = nixpkgs;
modules = modules ++ [nixosModules.stableCommon];
};
unstableSystem = {
modules,
system ? "x86_64-linux",
}:
nixpkgs-unstable.lib.nixosSystem {
nixosModules.stableCommon
};
in {
beefcake = nixpkgs.lib.nixosSystem { beefcake = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = with nixosModules; [ modules = with nixosModules; [