kore / nixos / hosts / default.nix19 lines · 426B · raw
1{ inputs, outputs, lib, kore, ... }:
2
3let
4 mkSystem = hostname: host: lib.nixosSystem {
5 system = host.system;
6 specialArgs = { inherit inputs outputs kore; };
7 modules = [
8 ../features/global.nix
9 ../features/kore.nix
10
11 ../roles
12
13 (./. + "/${hostname}.nix")
14
15 { networking.hostName = "${hostname}"; }
16 { system.stateVersion = "25.11"; }
17 ];
18 };
19in lib.mapAttrs mkSystem kore.hosts