From 90476f057d2602375b85aba00445ed05b6ba24a3 Mon Sep 17 00:00:00 2001 From: dadada Date: Tue, 25 Apr 2023 10:01:59 +0200 Subject: [PATCH] uwupn -> wg-quick --- nixos/gorgon/configuration.nix | 7 ++++--- nixos/modules/networking.nix | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/nixos/gorgon/configuration.nix b/nixos/gorgon/configuration.nix index 0441cc9..427fa10 100644 --- a/nixos/gorgon/configuration.nix +++ b/nixos/gorgon/configuration.nix @@ -68,7 +68,7 @@ in networking = { enableBsShare = true; localResolver = { - enable = true; + enable = false; uwu = true; s0 = true; }; @@ -142,9 +142,10 @@ in "127.0.0.2" = [ "kanboard.dadada.li" ]; }; - networking.wireguard.interfaces.uwupn = { - ips = [ "10.11.0.24/32" "fc00:1337:dead:beef::10.11.0.24/128" ]; + networking.wg-quick.interfaces.uwupn = { + address = [ "10.11.0.24/32" "fc00:1337:dead:beef::10.11.0.24/128" ]; privateKeyFile = "/var/lib/wireguard/uwu"; + dns = [ "10.11.0.1" ]; peers = [ { publicKey = "tuoiOWqgHz/lrgTcLjX+xIhvxh9jDH6gmDw2ZMvX5T8="; diff --git a/nixos/modules/networking.nix b/nixos/modules/networking.nix index 4187cc7..4a0df4d 100644 --- a/nixos/modules/networking.nix +++ b/nixos/modules/networking.nix @@ -30,7 +30,7 @@ in }; config = { - networking.resolvconf.useLocalResolver = mkIf cfg.localResolver.enable true; + #networking.resolvconf.useLocalResolver = mkIf cfg.localResolver.enable true; networking.networkmanager.dns = mkIf cfg.localResolver.enable "unbound"; services.unbound = mkIf cfg.localResolver.enable {