diff options
Diffstat (limited to 'Omni/Dev/Vpn.nix')
-rw-r--r-- | Omni/Dev/Vpn.nix | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/Omni/Dev/Vpn.nix b/Omni/Dev/Vpn.nix index 9b791b7..a8a1f3c 100644 --- a/Omni/Dev/Vpn.nix +++ b/Omni/Dev/Vpn.nix @@ -1,6 +1,4 @@ -{ config, ... }: - -let +{config, ...}: let ports = import ../Cloud/Ports.nix; domain = "headscale.simatime.com"; in { @@ -8,7 +6,7 @@ in { enable = true; address = "0.0.0.0"; port = ports.headscale; - settings = { dns.base_domain = "simatime.com"; }; + settings = {dns.base_domain = "simatime.com";}; }; services.nginx.virtualHosts.${domain} = { @@ -20,14 +18,13 @@ in { }; }; - environment.systemPackages = [ config.services.headscale.package ]; + environment.systemPackages = [config.services.headscale.package]; services.tailscale.enable = true; networking.firewall = { checkReversePath = "loose"; - trustedInterfaces = [ "tailscale0" ]; - allowedUDPPorts = [ config.services.tailscale.port ]; + trustedInterfaces = ["tailscale0"]; + allowedUDPPorts = [config.services.tailscale.port]; }; - } |