kartei/feliks: add ipv6 addresses

This commit is contained in:
Jörg Thalheim 2023-03-26 22:18:06 +02:00
parent 8d670a2e63
commit 751cda6f6d

View File

@ -1,10 +1,19 @@
with import ../../lib;
{ config, ... }: let { 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 { in {
users.feliks = { users.feliks = {
mail = "feliks@flipdot.org"; mail = "feliks@flipdot.org";
}; };
hosts = { hosts = mapAttrs hostDefaults {
papawhakaaro = { papawhakaaro = {
owner = config.krebs.users.feliks; owner = config.krebs.users.feliks;
nets = { nets = {