From 2de74b855dab4aca277b1e923e544ef830c75e62 Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Tue, 20 Apr 2021 12:51:30 +0200 Subject: profiles/tvl: use networking.domain instead of listing all hosts This should make arbitrary new short domains work automatically. --- modules/profiles/tvl.nix | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'modules/profiles/tvl.nix') 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"; }; } -- cgit 1.4.1