nixos-config/services/tailscale.nix

19 lines
384 B
Nix
Raw Normal View History

2024-11-06 08:08:58 +00:00
{
config,
lib,
...
}:
2024-11-09 14:02:26 +00:00
with lib;
{
2024-11-06 08:08:58 +00:00
config = mkIf (!config.isInstaller) {
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"
];
2024-10-29 12:29:05 +00:00
};
}