Added s0
This commit is contained in:
parent
62e288ea68
commit
68049539aa
2 changed files with 15 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
];
|
||||
}
|
||||
)
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue