uwupn -> wg-quick

This commit is contained in:
Tim Schubert 2023-04-25 10:01:59 +02:00
parent e4cdc83a1f
commit 90476f057d
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
2 changed files with 5 additions and 4 deletions

View file

@ -68,7 +68,7 @@ in
networking = { networking = {
enableBsShare = true; enableBsShare = true;
localResolver = { localResolver = {
enable = true; enable = false;
uwu = true; uwu = true;
s0 = true; s0 = true;
}; };
@ -142,9 +142,10 @@ in
"127.0.0.2" = [ "kanboard.dadada.li" ]; "127.0.0.2" = [ "kanboard.dadada.li" ];
}; };
networking.wireguard.interfaces.uwupn = { networking.wg-quick.interfaces.uwupn = {
ips = [ "10.11.0.24/32" "fc00:1337:dead:beef::10.11.0.24/128" ]; address = [ "10.11.0.24/32" "fc00:1337:dead:beef::10.11.0.24/128" ];
privateKeyFile = "/var/lib/wireguard/uwu"; privateKeyFile = "/var/lib/wireguard/uwu";
dns = [ "10.11.0.1" ];
peers = [ peers = [
{ {
publicKey = "tuoiOWqgHz/lrgTcLjX+xIhvxh9jDH6gmDw2ZMvX5T8="; publicKey = "tuoiOWqgHz/lrgTcLjX+xIhvxh9jDH6gmDw2ZMvX5T8=";

View file

@ -30,7 +30,7 @@ in
}; };
config = { 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"; networking.networkmanager.dns = mkIf cfg.localResolver.enable "unbound";
services.unbound = mkIf cfg.localResolver.enable { services.unbound = mkIf cfg.localResolver.enable {