10 lines
300 B
Nix
10 lines
300 B
Nix
{config, ...}: {
|
|
services.tailscale = {
|
|
enable = true;
|
|
authKeyFile = config.sops.secrets."services/tailscale/authKey".path;
|
|
};
|
|
sops.secrets."services/tailscale/authKey".sopsFile = ./tailscale.yaml;
|
|
environment.persistence."/persistent".directories = [
|
|
"/var/lib/tailscale"
|
|
];
|
|
}
|