From 3fd5f7fcbe34080ac66906c2f5b6d1bd458546ba Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sun, 9 Jun 2024 00:51:09 -0400 Subject: [PATCH] age: add tailscale authKeyFile --- nixosModules/services/tailscale/default.nix | 2 ++ secrets/secrets.nix | 1 + secrets/tailscale/authKeyFile.age | Bin 0 -> 1045 bytes 3 files changed, 3 insertions(+) create mode 100644 secrets/tailscale/authKeyFile.age diff --git a/nixosModules/services/tailscale/default.nix b/nixosModules/services/tailscale/default.nix index 499eaa6c..ad927417 100644 --- a/nixosModules/services/tailscale/default.nix +++ b/nixosModules/services/tailscale/default.nix @@ -9,9 +9,11 @@ }; config = lib.mkIf config.alyraffauf.services.tailscale.enable { + age.secrets.tailscaleAuthKey.file = ../../../secrets/tailscale/authKeyFile.age; services.tailscale = { enable = true; openFirewall = true; + authKeyFile = config.age.secrets.tailscaleAuthKey.path; }; }; } diff --git a/secrets/secrets.nix b/secrets/secrets.nix index d87d197b..1fe9b9ae 100644 --- a/secrets/secrets.nix +++ b/secrets/secrets.nix @@ -15,6 +15,7 @@ let in { "spotify/clientId.age".publicKeys = users ++ systems; "spotify/clientSecret.age".publicKeys = users ++ systems; + "tailscale/authKeyFile.age".publicKeys = users ++ systems; "wifi/Stargate-Discovery.age".publicKeys = users ++ systems; "wifi/wattson.age".publicKeys = users ++ systems; } diff --git a/secrets/tailscale/authKeyFile.age b/secrets/tailscale/authKeyFile.age new file mode 100644 index 0000000000000000000000000000000000000000..9ca0e937b21a9d4c5b4a6ff80895f492a2c37f2d GIT binary patch literal 1045 zcmZY6yQ}MT0Kjplb0Mp62N&a&kE zD0p?zK?EleL2>uObr5v(fjZvl4DRRr1s}eAohY~ta<4v@ZBpc~7IlR77e3Mn^Wp+=IfYtt`jXa1y2rlt+8%j2G>& zQm94O9ESxstKM9h?^@867X$$-P^h9TXU$#BCv?76VH~ALc^Vkh+FJPWz>QL_C8CyO zMv3(P1Ea$r?Z`5^zq?()0A_B@| z)v0qLQhC8m5Rw;{W@nScoV?d&ke*XTFwiZbuL1`N8KgN6{>)hJkNj{nE}^10lLKl~ z)aFQQM65zbzppZ8GTS!XM4T1;0qxE+qg|k>RfwS<44Tc7Mr9(&Jx!>=%ALVRvldb? z8`*Qk)a6mYrh(|S27QUZxx+%9=&jvWA1G#pfYGQk@0n6f zVq0B`twks(adl6N5T`UFIPY-2dBZILJUop z^T{fSYSP64rE!C$6{cv#LLBE2q|Y==%B^rd)2oQDz=cwU9D3t8&Lk>sq@4eNSPz z95|I}PZ4$z^3dZqPLtsF-FJTZ{wja#kC)8u=9@pCz4*!S!@obiaGO4azuvs|%6E^i z-h2Nyck!eYAN&)&dG*n=M}K|${N=Ccw?F&fhM{hQ|9=1Z!PC*bu|9tC`NQzjzd!u) Ni>J>Y{iOf8{~t`5U|#?L literal 0 HcmV?d00001