feat(teal): Add tailscale
We set up a headscale server, but we did not yet add a client so it
isn't possible to use it on the tailnet. Let's do that!
Change-Id: I686a6f6d8df2b4a8dd9d47389aacb0bff3abff82
Reviewed-on: https://git.clicks.codes/c/Infra/NixFiles/+/742
Reviewed-by: Samuel Shuert <coded@clicks.codes>
Tested-by: Skyler Grey <minion@clicks.codes>
diff --git a/systems/x86_64-linux/teal/default.nix b/systems/x86_64-linux/teal/default.nix
index 11e6f04..a0595cc 100644
--- a/systems/x86_64-linux/teal/default.nix
+++ b/systems/x86_64-linux/teal/default.nix
@@ -51,6 +51,12 @@
};
};
+ networking.tailscale = {
+ enable = true;
+ authKeyFile =
+ config.clicks.secrets."${lib.clicks.secrets.name ./tailscale.sops.json}".paths.authKey;
+ };
+
storage = {
raid.enable = true;
impermanence = {
@@ -108,4 +114,9 @@
];
neededForUsers = false;
};
+
+ clicks.secrets."${lib.clicks.secrets.name ./tailscale.sops.json}" = {
+ file = ./tailscale.sops.json;
+ keys = [ "authKey" ];
+ };
}