Reenable tailscale on nixnuc

This commit is contained in:
Gene Liverman 2025-03-22 22:09:29 -04:00
parent 637ae4f598
commit fea8be8925
Signed by: genebean
SSH key fingerprint: SHA256:gMnZbl3rg8nIXl4AomxNeNiOG4mWP/xEywbmQjVfhtY
2 changed files with 19 additions and 4 deletions

View file

@ -529,6 +529,18 @@ in {
openDefaultPorts = true;
guiAddress = "0.0.0.0:8384";
};
tailscale = {
enable = true;
authKeyFile = config.sops.secrets.tailscale_key.path;
extraUpFlags = [
"--advertise-exit-node"
"--operator"
"${username}"
"--ssh"
"--advertise-routes=192.168.20.0/22"
];
useRoutingFeatures = "both";
};
telegraf = {
enable = true;
extraConfig = {
@ -631,6 +643,9 @@ in {
};
mealie.mode = "0444";
nextcloud_admin_pass.owner = config.users.users.nextcloud.name;
tailscale_key = {
restartUnits = [ "tailscaled-autoconnect.service" ];
};
uptimekuma_grafana_api_key = {
owner = config.users.users.prometheus.name;
restartUnits = ["prometheus.service"];