about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-04-20 12:51:30 +0200
committersternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-04-20 12:51:30 +0200
commit2de74b855dab4aca277b1e923e544ef830c75e62 (patch)
tree7b3b4d21edd564d5c3419962f6ad6484cf1585b8 /modules
parent66d3cf70a9b5216c9c5aa6ce3d5a7f41321548e0 (diff)
profiles/tvl: use networking.domain instead of listing all hosts
This should make arbitrary new short domains work automatically.
Diffstat (limited to 'modules')
-rw-r--r--modules/profiles/tvl.nix10
1 files changed, 3 insertions, 7 deletions
diff --git a/modules/profiles/tvl.nix b/modules/profiles/tvl.nix
index 4472ddff..ac7a7da4 100644
--- a/modules/profiles/tvl.nix
+++ b/modules/profiles/tvl.nix
@@ -2,14 +2,12 @@
 
 let
   cfg = config.vuizvui.profiles.tvl;
-
-  tvlShortDNS = [ "b" "cl" ];
 in
 
 {
   options = {
     vuizvui.profiles.tvl = {
-      enable = lib.mkEnableOption "tvl-specific tweaks";
+      enable = lib.mkEnableOption "TVL-specific tweaks";
     };
   };
 
@@ -25,9 +23,7 @@ in
 
     };
 
-    networking.hosts = {
-      "49.12.129.211" = tvlShortDNS;
-      "2a01:4f8:242:5b21:0:feed:edef:beef" = tvlShortDNS;
-    };
+    # TVL short DNS
+    networking.domain = lib.mkDefault "tvl.su";
   };
 }