mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 20:59:32 -08:00
22 lines
729 B
Nix
22 lines
729 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
|
|
|
|
# use this for android instructions
|
|
# https://github.com/juanfont/headscale/blob/main/docs/android-client.md
|
|
|
|
services.tailscale.enable = true;
|
|
# Defined here to indicate the settings are related
|
|
networking.firewall = {
|
|
checkReversePath = "loose";
|
|
trustedInterfaces = [ "tailscale0" ];
|
|
allowedUDPPorts = [ config.services.tailscale.port ];
|
|
};
|
|
}
|