diff --git a/nixos/gorgon/configuration.nix b/nixos/gorgon/configuration.nix index df7fe26..ef83274 100644 --- a/nixos/gorgon/configuration.nix +++ b/nixos/gorgon/configuration.nix @@ -41,6 +41,7 @@ in localResolver = { enable= true; uwu= true; + s0= true; }; vpnExtension = "3"; }; @@ -125,7 +126,7 @@ in peers = [ { publicKey = "tuoiOWqgHz/lrgTcLjX+xIhvxh9jDH6gmDw2ZMvX5T8="; - allowedIPs = [ "10.11.0.0/22" "fc00:1337:dead:beef::10.11.0.0/118" ]; + allowedIPs = [ "10.11.0.0/22" "fc00:1337:dead:beef::10.11.0.0/118" "192.168.178.0/23" ]; endpoint = "53c70r.de:51820"; persistentKeepalive = 25; } diff --git a/nixos/modules/networking.nix b/nixos/modules/networking.nix index c9cb220..1b549de 100644 --- a/nixos/modules/networking.nix +++ b/nixos/modules/networking.nix @@ -9,6 +9,7 @@ in localResolver = { enable = mkEnableOption "Enable local caching name server"; uwu = mkEnableOption "Enable uwupn"; + s0 = mkEnableOption "Enable s0"; }; wanInterfaces = mkOption { type = with types; listOf str; @@ -57,8 +58,12 @@ in private-domain = [ "dadada.li" (mkIf cfg.localResolver.uwu "uwu") + (mkIf cfg.localResolver.s0 "s0") + ]; + domain-insecure = [ + (mkIf cfg.localResolver.uwu "uwu") + (mkIf cfg.localResolver.s0 "s0") ]; - domain-insecure = mkIf cfg.localResolver.uwu "uwu"; interface = [ "127.0.0.1" "::1" @@ -83,6 +88,13 @@ in ]; } ) + (mkIf cfg.localResolver.s0 { + name = "s0."; + forward-addr = [ + "192.168.178.1" + ]; + } + ) ]; }; };