entities/lib.nix

9 lines
279 B
Nix
Raw Normal View History

2023-01-17 13:30:45 -08:00
{ 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; }