From 751cda6f6da2785023a3c915b45749cbc67eac07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 26 Mar 2023 22:18:06 +0200 Subject: kartei/feliks: add ipv6 addresses --- kartei/feliks/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'kartei/feliks') diff --git a/kartei/feliks/default.nix b/kartei/feliks/default.nix index acb4e08fa..5ea921d2c 100644 --- a/kartei/feliks/default.nix +++ b/kartei/feliks/default.nix @@ -1,10 +1,19 @@ +with import ../../lib; { config, ... }: let - lib = import ../../lib; + hostDefaults = hostName: host: flip recursiveUpdate host ({ + ci = false; + external = true; + monitoring = false; + } // optionalAttrs (host.nets?retiolum) { + nets.retiolum.ip6.addr = + (krebs.genipv6 "retiolum" "external" { inherit hostName; }).address; + }); +in { in { users.feliks = { mail = "feliks@flipdot.org"; }; - hosts = { + hosts = mapAttrs hostDefaults { papawhakaaro = { owner = config.krebs.users.feliks; nets = { -- cgit v1.2.3