1
0
Fork 0
dotfiles/system/nixos/tailscale.nix

19 lines
322 B
Nix
Raw Normal View History

2023-04-04 13:05:39 +00:00
{ pkgs, config, ... }:
2022-07-31 12:03:27 +00:00
let
headscale = "https://ctrl.headscale.kempkens.network";
in
2022-07-31 12:03:27 +00:00
{
environment.systemPackages = [ pkgs.tailscale ];
services.tailscale = {
enable = true;
authKeyFile = config.age.secrets.tailscale-authkey.path;
2022-07-31 12:03:27 +00:00
extraUpFlags = [
"--login-server"
headscale
];
2022-07-31 12:03:27 +00:00
};
}