This commit is contained in:
Tim Schubert 2022-02-05 14:32:29 +01:00
parent 62e288ea68
commit 68049539aa
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
2 changed files with 15 additions and 2 deletions

View file

@ -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;
}

View file

@ -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"
];
}
)
];
};
};