From 9b2a6ee723d8d19dad850c1b832a2deeb3c7c416 Mon Sep 17 00:00:00 2001 From: dadada Date: Sun, 23 Apr 2023 11:36:47 +0200 Subject: [PATCH] use local resolver on surgat --- nixos/modules/networking.nix | 10 ++++++++++ nixos/surgat/configuration.nix | 3 +++ 2 files changed, 13 insertions(+) diff --git a/nixos/modules/networking.nix b/nixos/modules/networking.nix index 07ad57d..4187cc7 100644 --- a/nixos/modules/networking.nix +++ b/nixos/modules/networking.nix @@ -64,11 +64,13 @@ in "dadada.li" (mkIf cfg.localResolver.uwu "uwu") (mkIf cfg.localResolver.s0 "space.stratum0.net") + (mkIf cfg.localResolver.s0 "s0") ]; domain-insecure = [ "dadada.li" (mkIf cfg.localResolver.uwu "uwu") (mkIf cfg.localResolver.s0 "space.stratum0.net") + (mkIf cfg.localResolver.s0 "s0") ]; interface = [ "127.0.0.1" @@ -103,6 +105,14 @@ in ]; } ) + ( + mkIf cfg.localResolver.s0 { + name = "s0."; + forward-addr = [ + "192.168.178.1" + ]; + } + ) { name = "dyn.dadada.li."; forward-addr = [ diff --git a/nixos/surgat/configuration.nix b/nixos/surgat/configuration.nix index e25c9ab..3aa2320 100644 --- a/nixos/surgat/configuration.nix +++ b/nixos/surgat/configuration.nix @@ -109,6 +109,9 @@ in ]; }; + services.resolved.enable = true; + networking.resolvconf.useLocalResolver = true; + system.autoUpgrade.allowReboot = false; system.stateVersion = "20.09";