From 2fdf3fd5e85d845b9541748f257660fad294e7e8 Mon Sep 17 00:00:00 2001 From: dadada Date: Wed, 26 Apr 2023 12:09:18 +0200 Subject: [PATCH] Revert "uwupn -> wg-quick" This reverts commit 90476f057d2602375b85aba00445ed05b6ba24a3. --- nixos/gorgon/configuration.nix | 7 +++---- nixos/modules/networking.nix | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/nixos/gorgon/configuration.nix b/nixos/gorgon/configuration.nix index 427fa10..0441cc9 100644 --- a/nixos/gorgon/configuration.nix +++ b/nixos/gorgon/configuration.nix @@ -68,7 +68,7 @@ in networking = { enableBsShare = true; localResolver = { - enable = false; + enable = true; uwu = true; s0 = true; }; @@ -142,10 +142,9 @@ in "127.0.0.2" = [ "kanboard.dadada.li" ]; }; - networking.wg-quick.interfaces.uwupn = { - address = [ "10.11.0.24/32" "fc00:1337:dead:beef::10.11.0.24/128" ]; + networking.wireguard.interfaces.uwupn = { + ips = [ "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 4a0df4d..4187cc7 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 {