maybe helpers?
This commit is contained in:
parent
afa7d0a5b6
commit
dbabc70e2f
1 changed files with 26 additions and 1 deletions
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