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