summaryrefslogtreecommitdiffstats
path: root/kartei/feliks
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2023-03-26 22:18:06 +0200
committerJörg Thalheim <joerg@thalheim.io>2023-03-26 22:18:06 +0200
commit751cda6f6da2785023a3c915b45749cbc67eac07 (patch)
tree75aa994a18faf9a3e475c05db4f9c15b2ed4b1c3 /kartei/feliks
parent8d670a2e63d4d79e215372a8c53d7507dbd9b884 (diff)
kartei/feliks: add ipv6 addresses
Diffstat (limited to 'kartei/feliks')
-rw-r--r--kartei/feliks/default.nix13
1 files changed, 11 insertions, 2 deletions
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 = {