greenhouse

kore

my public infrastructure monorepo

git clone [email protected]:kore.git

kore / nixos / hosts / default.nix15 lines · 376B · raw

1{ inputs, outputs, lib, kore, ... }:
2
3let
4  mkSystem = hostname: host: lib.nixosSystem {
5    specialArgs = { inherit inputs outputs kore; };
6    modules = [
7      ../features/global.nix
8      ../features/kore.nix
9
10      ./${hostname}.nix
11
12      { networking.hostName = hostname; }
13    ] ++ map (role: ../roles/${role}.nix) host.roles;
14  };
15in lib.mapAttrs mkSystem kore.hosts