simplify inputs

This commit is contained in:
2026-04-24 18:16:07 -05:00
parent aa7520e487
commit 32cfdc0f3d
+16 -27
View File
@@ -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;
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 ];
};
};
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;
};
};
};
};
}