From 51457c2bee4d97ca379fca5e39854f26db73935c Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Fri, 22 Sep 2023 23:59:48 +0200 Subject: [PATCH] headscale: prepare for jellyfin move --- agenix/hosts/tanker/headscale/acls.age | Bin 1249 -> 1418 bytes system/nixos/adguardhome.nix | 2 +- system/nixos/headscale.nix | 11 +++++++++++ system/nixos/jellyfin.nix | 10 ++++++++++ 4 files changed, 22 insertions(+), 1 deletion(-) diff --git a/agenix/hosts/tanker/headscale/acls.age b/agenix/hosts/tanker/headscale/acls.age index ca8526229c721097e8b643e50cea22f0a317f044..efe735610a3004a19d3dda9ec188102c8e37f836 100644 GIT binary patch delta 1391 zcmV-#1(5pT35pAlEPqO9H&{hzZ!}a)GiOk7O;}|^a#}Y@WOg_)X;NWNN>W8rN>yQU zX;gA+NeWY1Gj366d1+5MPe^EbIcjoHOiyYwLT++bG+Jm&GjcLBQbJN@T1#nJcM2^& zAaiqQEoEdfH8n9gAZbrHFEnQ$dPFgDcTGz}F=uaDaXDf_Vt+AYaz<2PPD@fva#mMw zRd;tUacDwUVK78%3U@U`FgY(xHcW9+IdN!BQ%hGyM`Sipb!%@{G%-SNc6n7BUsS8z9FYc*$dL}YSjS~LnREiE8ea#U|YM{ZnTU!Em0fThd##O8pXiE1veo{Tg;;gY94`U zKFrdnWa35JnfYDlL=q*H|Ct$)@Z+|3l*bf|Aet(`i)p+|DjQZ&__iiLDlM*ta3y|Go~QmRu|x-7g}@wQUM@Xu0C&JD9=gJ%3YsSu&B!C5k_q4|1=bM#G!pPeT8e zCAY06H5ch@5Mr@_dW_vnF|o>XkAygZHfyG;1CJPn*CpUYbkp~Xb)TQWSOOg68ZM-1 z3UfW5_qS!}c_b_oE&}EGQbGXL1(n6(cn{RTjbq|h>8qoc0d+i(KCd?2$rXrVO*h&W z$bZ{zmk~<)F-izRM`WQVY@G*U`Y3`iW)Cgr8|2U{JXp2xWMyBP=sk1*uZOgr&Z%_S zAg?LAr?9O9U0NUQzi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qG0*`L3kfu2z1yR7=TX9r&LE zM%fn^%70vQykCV-R~A^wPxgQ3I(KGk3xgFXlS?&dMqYY9LBUawAtm1ii1GK8Ub3n6 zx<5Y0Bj69^(SV+uwBWrU1+XC8oR0Oejp;vAhs#E%(=wIUZL#lq(6FNF{_(oMFIw2y z>n*%9nXqK~e|BPqmL%&Y$-gwbcqlqvml}Z9s(;;8M_oi1DYd$w<;-;2UN8{+B&!?BX_>VlvYw?P~*C}!S+3&i4 zzh!zp0xdefwyFom#G|7V45~_v8$2NRCIU5Etxx~{LIyj4{43Ph(QIv(ST8U}X%vrB z#$bMYo4kn3T3dBU^mEOex2r6f(Pp4Blz-*T!LI`MYOA+C;Ugo{90yK^4c*ZVxwhPf zzmWP25uW2jn%GG@qQcYIErHdKIh=OA(e+0@do{8I%(4t3rZP9gYrbhNacQD?tzKLW zR2d6u17hr?okq~qVHHCZ0b->YQGQHf|3a?0Ou9iYPwcbI?8X2Emfb6tLE%bMMD<4(7PJNHlUk{OznR&~*i$3J5Zh%Z zQQ{1;6^=^NAfM4jn4&O>-_n?uEk3cfSZr2fN$1ZhJOlJn!6PFFgEoU)ntwxCphT)p j^u{WC)W#ez&aX+|{1VwE4n90cO~rqR2o&Z8X_q0 diff --git a/system/nixos/adguardhome.nix b/system/nixos/adguardhome.nix index c144f0e..6f1b148 100644 --- a/system/nixos/adguardhome.nix +++ b/system/nixos/adguardhome.nix @@ -44,7 +44,7 @@ networking.firewall.interfaces = let - interfaces = lib.mapAttrsToList (_: lib.attrsets.attrByPath [ "matchConfig" "Name" ] null) config.systemd.network.networks; + interfaces = lib.mapAttrsToList (_: lib.attrsets.attrByPath [ "matchConfig" "Name" ] null) config.systemd.network.networks ++ [ "tailscale0" ]; in builtins.listToAttrs (builtins.map diff --git a/system/nixos/headscale.nix b/system/nixos/headscale.nix index bdbd66f..08d3e9c 100644 --- a/system/nixos/headscale.nix +++ b/system/nixos/headscale.nix @@ -25,6 +25,17 @@ in server_url = "https://${fqdn}"; acl_policy_path = config.age.secrets.headscale-acls.path; + + dns_config = { + override_local_dns = false; + + nameservers = [ + "100.64.10.1" + "100.64.10.6" + ]; + + base_domain = "mesh.kempkens.network"; + }; }; }; diff --git a/system/nixos/jellyfin.nix b/system/nixos/jellyfin.nix index 4516643..de6cf97 100644 --- a/system/nixos/jellyfin.nix +++ b/system/nixos/jellyfin.nix @@ -30,12 +30,22 @@ addr = "0.0.0.0"; port = 9920; ssl = true; + extraParameters = [ + "fastopen=63" + "backlog=1023" + "deferred" + ]; } { addr = "[::0]"; port = 9920; ssl = true; + extraParameters = [ + "fastopen=63" + "backlog=1023" + "deferred" + ]; } ];