simplify inputs
This commit is contained in:
@@ -24,36 +24,25 @@
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
username = "poslop";
|
||||
mkHost =
|
||||
host: modules:
|
||||
nixpkgs.lib.nixosSystem {
|
||||
modules = [ { nixpkgs.hostPlatform = system; } ] ++ modules;
|
||||
specialArgs = {
|
||||
inherit
|
||||
self
|
||||
inputs
|
||||
username
|
||||
host
|
||||
;
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
nixosConfigurations = {
|
||||
nixos-vm2 = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [ ./hosts/nixos-vm2/configuration.nix ];
|
||||
specialArgs = {
|
||||
host = "nixos-vm2";
|
||||
inherit self inputs username;
|
||||
};
|
||||
};
|
||||
|
||||
qemu-vm = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [ ./hosts/qemu-vm/configuration.nix ];
|
||||
specialArgs = {
|
||||
host = "qemu-vm";
|
||||
inherit self inputs username;
|
||||
};
|
||||
};
|
||||
|
||||
goyplex-vm = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [ ./hosts/goyplex-vm/configuration.nix ];
|
||||
specialArgs = {
|
||||
host = "goyplex-vm";
|
||||
inherit self inputs username;
|
||||
};
|
||||
};
|
||||
nixos-vm2 = mkHost "nixos-vm2" [ ./hosts/nixos-vm2/configuration.nix ];
|
||||
qemu-vm = mkHost "qemu-vm" [ ./hosts/qemu-vm/configuration.nix ];
|
||||
goyplex-vm = mkHost "goyplex-vm" [ ./hosts/goyplex-vm/configuration.nix ];
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user