20 lines
517 B
Nix
20 lines
517 B
Nix
{ nixpkgs, machines, physicalMachines, dns, microvm, disko, agenix, nixos-hardware, ... }:
|
|
let
|
|
mkNixosSystems = systemDef:
|
|
builtins.mapAttrs
|
|
(name: machine:
|
|
nixpkgs.lib.nixosSystem (systemDef name machine)
|
|
)
|
|
physicalMachines;
|
|
in
|
|
{
|
|
nixosConfigurations = mkNixosSystems (name: machine: {
|
|
system = machine.arch;
|
|
|
|
specialArgs = { inherit machines machine dns microvm disko agenix nixos-hardware; };
|
|
modules = [
|
|
../.
|
|
{ networking.hostName = name; }
|
|
];
|
|
});
|
|
}
|