dotfiles/system/nixos/tailscale.nix
Daniel Kempkens b438a36f3b
All checks were successful
Build / build-arm64-linux (push) Successful in 19m49s
Build / build-amd64-linux (push) Successful in 42m11s
all: switch from tailscale to headscale
2023-09-21 21:57:56 +02:00

18 lines
322 B
Nix

{ pkgs, config, ... }:
let
headscale = "https://ctrl.headscale.kempkens.network";
in
{
environment.systemPackages = [ pkgs.tailscale ];
services.tailscale = {
enable = true;
authKeyFile = config.age.secrets.tailscale-authkey.path;
extraUpFlags = [
"--login-server"
headscale
];
};
}