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

19 lines
614 B
Nix

{ 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
services.tailscale.enable = true;
# Defined here to indicate the settings are related
networking.firewall = {
checkReversePath = "loose";
trustedInterfaces = [ "tailscale0" ];
allowedUDPPorts = [ config.services.tailscale.port ];
};
}