Add Tailscale support to NixOS configurations

This commit is contained in:
2026-06-11 12:51:09 -03:00
parent 691b71a5cd
commit 3dfaeb111a
5 changed files with 132 additions and 3 deletions
@@ -50,6 +50,9 @@
};
sops.secrets."users/server/hashedPassword".neededForUsers = true;
sops.secrets."tailscale/auth-key" = {
mode = "0400";
};
security.sudo.wheelNeedsPassword = true;
@@ -63,6 +66,11 @@
networking = {
hostName = "nix-server";
networkManager.enable = true;
tailscale = {
enable = true;
authKeyFile = config.sops.secrets."tailscale/auth-key".path;
subnetRouter.enable = true;
};
};
caching.attic = {