9 lines
279 B
Nix
9 lines
279 B
Nix
|
{ lib, entities, ... }:
|
||
|
|
||
|
let
|
||
|
getHostSite = hostname: entities.hosts."${hostname}".site;
|
||
|
getHostDomain = hostname: entities.domains."${hostname}".domain;
|
||
|
getHostRealm = hostname: (getHostDomain hostname).gssapi-realm;
|
||
|
|
||
|
in { inherit getHostSite getHostDomain getHostRealm; }
|