summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2021-11-09 07:15:51 +0100
committerJörg Thalheim <joerg@thalheim.io>2021-11-23 17:44:50 +0100
commit87b7045f53687683364e7d422edcb1d167a8c2ad (patch)
treea158b2da46170279f509e0cbc06e215079c100d8
parenta36a09931eff394046d7b1268fb7b72d1f458b1a (diff)
mic92: add dns name to sandro's machine
-rw-r--r--krebs/3modules/external/default.nix4
-rw-r--r--lib/types.nix2
2 files changed, 4 insertions, 2 deletions
diff --git a/krebs/3modules/external/default.nix b/krebs/3modules/external/default.nix
index 28d58b525..9b7ebf311 100644
--- a/krebs/3modules/external/default.nix
+++ b/krebs/3modules/external/default.nix
@@ -632,8 +632,10 @@ in {
};
hydrogen = {
owner = config.krebs.users.sandro;
- nets = {
+ nets = rec {
+ internet.addrs = [ "hydrogen.supersandro.de" ];
retiolum = {
+ via = internet;
ip4.addr = "10.243.54.54";
aliases = [ "hydrogen.r" ];
tinc.pubkey = ''
diff --git a/lib/types.nix b/lib/types.nix
index 6755eef03..b6c266c33 100644
--- a/lib/types.nix
+++ b/lib/types.nix
@@ -113,7 +113,7 @@ rec {
default = null;
};
addrs = mkOption {
- type = listOf addr;
+ type = listOf (either addr str);
default =
optional (config.ip4 != null) config.ip4.addr ++
optional (config.ip6 != null) config.ip6.addr;