2024-07-02 17:54:14 +09:00
|
|
|
{ hostname, deployment_type,... }: {
|
2024-01-12 15:03:47 +09:00
|
|
|
# Generic Tailscale configs are in /nixos/common/services/tailscale.nix
|
|
|
|
# Set up the secrets file:
|
|
|
|
sops.secrets."tailscale_key" = {
|
|
|
|
owner = "root";
|
2024-07-02 17:54:14 +09:00
|
|
|
sopsFile = ../../../secrets/${deployment_type}/${hostname}.yaml;
|
2024-01-12 15:03:47 +09:00
|
|
|
restartUnits = [
|
|
|
|
"tailscaled.service"
|
|
|
|
"tailscaled-autoconnect.service"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
services.tailscale.authKeyFile = "/run/secrets/tailscale_key";
|
2024-03-21 18:51:41 +09:00
|
|
|
}
|