nixos-config/services/tailscale.nix
Charlotte 🦝 Delenk ad0485e46d
All checks were successful
Hydra nixosConfigurations.not522 Hydra build #22697 of nixos-config:pr618:nixosConfigurations.not522
Hydra nixosConfigurations.not522-installer Hydra build #22698 of nixos-config:pr618:nixosConfigurations.not522-installer
make tailscale persistent
2024-10-31 16:42:05 +01:00

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"
];
}