Added s0
This commit is contained in:
parent
62e288ea68
commit
68049539aa
2 changed files with 15 additions and 2 deletions
|
@ -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