summaryrefslogtreecommitdiffstats
path: root/krebs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2022-03-18 13:50:37 +0100
committertv <tv@krebsco.de>2022-03-18 16:17:44 +0100
commite008a493e0fc0d0418fdc703535e473d6f089d04 (patch)
treed4b7f8abfa9f332d735e5b504e97a06b8d65e4ca /krebs
parent5903fb0b61e6e6524dd3bbdfaa81b7775a134304 (diff)
tv: hostDefaults -> evalHost
Diffstat (limited to 'krebs')
-rw-r--r--krebs/3modules/tv/default.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/krebs/3modules/tv/default.nix b/krebs/3modules/tv/default.nix
index e096118c6..132a3c4be 100644
--- a/krebs/3modules/tv/default.nix
+++ b/krebs/3modules/tv/default.nix
@@ -1,11 +1,13 @@
with import <stockholm/lib>;
{ config, ... }: let
- hostDefaults = hostName: host: foldl' recursiveUpdate {} [
+ evalHost = hostName: hostConfig: evalSubmodule types.host [
+ hostConfig
{
+ name = hostName;
owner = config.krebs.users.tv;
}
- (optionalAttrs (host.nets?retiolum) {
+ (optionalAttrs (hostConfig.nets?retiolum) {
nets.retiolum = {
ip6.addr =
(krebs.genipv6 "retiolum" "tv" { inherit hostName; }).address;
@@ -23,14 +25,13 @@ with import <stockholm/lib>;
wireguard.pubkey = readFile pubkey-path;
};
})
- host
];
in {
dns.providers = {
"viljetic.de" = "regfish";
};
- hosts = mapAttrs hostDefaults {
+ hosts = mapAttrs evalHost {
alnus = {
ci = true;
cores = 2;