This commit is contained in:
iFargle 2023-09-17 20:51:17 +09:00
parent 2974e205f1
commit a614e38903

View file

@ -24,5 +24,16 @@
useOSProber = true;
};
# Generic Tailscale configs are in /nixos/common/services/tailscale.nix
# Set up the secrets file:
sops.secrets.nixos-vm-01_tailscale_key = {
owner = "root";
sopsFile = ../../../secrets/tailscale.yaml;
restartUnits = [
"tailscaled.service"
"tailscaled-autoconnect.service"
];
};
services.tailscale.authKeyFile = "/run/secrets/nixos-vm-01_tailscale_key";
networking.firewall.allowedTCPPorts = [ 22 ];
}