2024-07-02 10:54:14 +02:00
|
|
|
{ hostname, deployment_type,... }: {
|
2024-01-12 07:03:47 +01: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 10:54:14 +02:00
|
|
|
sopsFile = ../../../secrets/${deployment_type}/${hostname}.yaml;
|
2024-01-12 07:03:47 +01:00
|
|
|
restartUnits = [
|
|
|
|
"tailscaled.service"
|
|
|
|
"tailscaled-autoconnect.service"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
services.tailscale.authKeyFile = "/run/secrets/tailscale_key";
|
2024-03-21 10:51:41 +01:00
|
|
|
}
|