18 lines
348 B
Nix
18 lines
348 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}"
|
|
"--stateful-filtering"
|
|
];
|
|
};
|
|
}
|