all: Add tailscale module

This commit is contained in:
fleaz 2023-08-02 22:24:47 +02:00
parent d1b6d1de00
commit 44aabef391
No known key found for this signature in database
GPG key ID: AED15F8FDD04D083
2 changed files with 11 additions and 0 deletions

10
modules/headscale.nix Normal file
View file

@ -0,0 +1,10 @@
{config, ...}:
{
services.tailscale.enable = true;
networking.firewall = {
checkReversePath = "loose";
trustedInterfaces = [ "tailscale0" ];
allowedUDPPorts = [ config.services.tailscale.port ];
};
}

View file

@ -22,6 +22,7 @@ in
../modules/udisks2.nix ../modules/udisks2.nix
../modules/samba.nix ../modules/samba.nix
../modules/gc.nix ../modules/gc.nix
../modules/headscale.nix
../secrets/remote-builder.nix ../secrets/remote-builder.nix
../users/fleaz.nix ../users/fleaz.nix