2024-10-28 13:12:06 +00:00
|
|
|
{
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
...
|
|
|
|
} @ inputs: let
|
2024-03-02 12:58:17 +00:00
|
|
|
mkNixosSystems = systemDef:
|
|
|
|
builtins.mapAttrs
|
2024-10-28 13:12:06 +00:00
|
|
|
(
|
2024-11-04 22:35:04 +00:00
|
|
|
name: module:
|
|
|
|
nixpkgs.lib.nixosSystem (systemDef name module)
|
2024-10-28 13:12:06 +00:00
|
|
|
)
|
2024-11-04 22:35:04 +00:00
|
|
|
self.machines;
|
2024-10-28 13:12:06 +00:00
|
|
|
in {
|
2024-11-04 22:35:04 +00:00
|
|
|
nixosConfigurations = mkNixosSystems (name: module: {
|
|
|
|
specialArgs = {
|
|
|
|
inherit self inputs;
|
|
|
|
inherit (self) machines;
|
|
|
|
};
|
2024-06-13 17:46:21 +00:00
|
|
|
|
2024-03-02 12:58:17 +00:00
|
|
|
modules = [
|
2024-09-07 11:59:04 +00:00
|
|
|
"${self}/modules"
|
2024-10-28 13:12:06 +00:00
|
|
|
{networking.hostName = name;}
|
2024-11-04 22:35:04 +00:00
|
|
|
module
|
2024-03-02 12:58:17 +00:00
|
|
|
];
|
|
|
|
});
|
|
|
|
}
|