maybe helpers?
This commit is contained in:
parent
afa7d0a5b6
commit
dbabc70e2f
27
flake.nix
27
flake.nix
|
@ -233,7 +233,32 @@
|
|||
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 {
|
||||
system = "x86_64-linux";
|
||||
modules = with nixosModules; [
|
||||
|
|
Loading…
Reference in a new issue