2024-06-13 17:46:21 +00:00
|
|
|
{ self, myLib, nixpkgs, machines, ... }@inputs:
|
2024-03-02 12:58:17 +00:00
|
|
|
let
|
|
|
|
mkNixosSystems = systemDef:
|
|
|
|
builtins.mapAttrs
|
|
|
|
(name: machine:
|
|
|
|
nixpkgs.lib.nixosSystem (systemDef name machine)
|
|
|
|
)
|
2024-04-13 13:43:01 +00:00
|
|
|
machines;
|
2024-03-02 12:58:17 +00:00
|
|
|
in
|
|
|
|
{
|
|
|
|
nixosConfigurations = mkNixosSystems (name: machine: {
|
|
|
|
system = machine.arch;
|
|
|
|
|
2024-06-13 17:46:21 +00:00
|
|
|
specialArgs = { inherit self inputs myLib machine machines; };
|
|
|
|
|
2024-03-02 12:58:17 +00:00
|
|
|
modules = [
|
2024-06-13 17:46:21 +00:00
|
|
|
"${self}/configuration.nix"
|
2024-03-02 12:58:17 +00:00
|
|
|
{ networking.hostName = name; }
|
|
|
|
];
|
|
|
|
});
|
|
|
|
}
|