nicks-nix-config/hosts/Alaska/modules/tailscale.nix

23 lines
729 B
Nix
Raw Normal View History

2023-08-05 09:56:57 -07:00
{ config, ... }:
{
# to add a new headscale "user", run this command
# sudo headscale users create elnuhub
# then run this command where headscale_url is the http path
# to the server
# tailscale up --login-server <headscale_url>
# then replace USERNAME with the computer's hostname which you created
# an "user" account in the first comment
# use this for android instructions
# https://github.com/juanfont/headscale/blob/main/docs/android-client.md
2023-08-05 09:56:57 -07:00
services.tailscale.enable = true;
# Defined here to indicate the settings are related
networking.firewall = {
checkReversePath = "loose";
trustedInterfaces = [ "tailscale0" ];
allowedUDPPorts = [ config.services.tailscale.port ];
};
}