2024-04-12 21:13:06 +00:00
|
|
|
{ nixpkgs, nixpkgs-unstable, machines, physicalMachines, dns, agenix, nixos-hardware, kubenix, disko, ... }:
|
2024-03-02 12:58:17 +00:00
|
|
|
let
|
|
|
|
mkNixosSystems = systemDef:
|
|
|
|
builtins.mapAttrs
|
|
|
|
(name: machine:
|
|
|
|
nixpkgs.lib.nixosSystem (systemDef name machine)
|
|
|
|
)
|
|
|
|
physicalMachines;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
nixosConfigurations = mkNixosSystems (name: machine: {
|
|
|
|
system = machine.arch;
|
|
|
|
|
2024-04-12 21:13:06 +00:00
|
|
|
specialArgs = { inherit nixpkgs-unstable machines machine dns agenix nixos-hardware kubenix disko; };
|
2024-03-02 12:58:17 +00:00
|
|
|
modules = [
|
|
|
|
../.
|
|
|
|
{ networking.hostName = name; }
|
2024-03-05 19:56:00 +00:00
|
|
|
{
|
|
|
|
nixpkgs.overlays = [
|
|
|
|
(final: _prev: {
|
|
|
|
unstable = import nixpkgs-unstable {
|
|
|
|
system = machine.arch;
|
|
|
|
};
|
|
|
|
})
|
|
|
|
];
|
|
|
|
}
|
2024-03-02 12:58:17 +00:00
|
|
|
];
|
|
|
|
});
|
|
|
|
}
|