about summary refs log tree commit diff
path: root/modules/profiles
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-04-09 23:23:38 +0200
committersternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-04-09 23:25:33 +0200
commitd019b1fc4449507ec075602254b69f9b7b88e5e5 (patch)
tree4f25f1f1d65d224a2100a19967cd34a9cef666e4 /modules/profiles
parent3f29a66ad515e8638fcef742749d9ab30a31185c (diff)
profiles/tvl: support tvls host shorthands
whitby.tvl.fyi has virtualhosts configured with the names "b" and "cl"
which redirect to b.tvl.fyi and cl.tvl.fyi respectively. For this to
work in e. g. your browser as well, we need to add entries to
networking.hosts. See also http://cl/2908.
Diffstat (limited to 'modules/profiles')
-rw-r--r--modules/profiles/tvl.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/profiles/tvl.nix b/modules/profiles/tvl.nix
index a50e1ec7..4472ddff 100644
--- a/modules/profiles/tvl.nix
+++ b/modules/profiles/tvl.nix
@@ -2,6 +2,8 @@
 
 let
   cfg = config.vuizvui.profiles.tvl;
+
+  tvlShortDNS = [ "b" "cl" ];
 in
 
 {
@@ -20,6 +22,12 @@ in
       binaryCaches = lib.mkAfter [
         "https://cache.tvl.su"
       ];
+
+    };
+
+    networking.hosts = {
+      "49.12.129.211" = tvlShortDNS;
+      "2a01:4f8:242:5b21:0:feed:edef:beef" = tvlShortDNS;
     };
   };
 }