From d019b1fc4449507ec075602254b69f9b7b88e5e5 Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Fri, 9 Apr 2021 23:23:38 +0200 Subject: 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. --- modules/profiles/tvl.nix | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'modules/profiles') 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; }; }; } -- cgit 1.4.1