mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-23 13:28:27 +01:00
Compare commits
2 commits
100f02a2d8
...
3df7d8f5f0
| Author | SHA1 | Date | |
|---|---|---|---|
| 3df7d8f5f0 | |||
| 56c7b22bf1 |
2 changed files with 25 additions and 34 deletions
|
|
@ -16,12 +16,9 @@ in
|
||||||
unbound = {
|
unbound = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
settings = {
|
settings.server = {
|
||||||
server = {
|
|
||||||
interface = [ netCfg.overlay.interface ];
|
interface = [ netCfg.overlay.interface ];
|
||||||
access-control = [
|
access-control = [ "${toString netCfg.overlay.networkCidr} allow" ];
|
||||||
"${toString netCfg.overlay.networkCidr} allow"
|
|
||||||
];
|
|
||||||
|
|
||||||
local-zone = "\"${netCfg.overlay.domain}.\" static";
|
local-zone = "\"${netCfg.overlay.domain}.\" static";
|
||||||
local-data =
|
local-data =
|
||||||
|
|
@ -43,15 +40,6 @@ in
|
||||||
in
|
in
|
||||||
nodeRecords ++ serviceRecords;
|
nodeRecords ++ serviceRecords;
|
||||||
};
|
};
|
||||||
|
|
||||||
forward-zone = lib.singleton {
|
|
||||||
name = ".";
|
|
||||||
forward-addr = [
|
|
||||||
"1.1.1.1"
|
|
||||||
"8.8.8.8"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nebula.networks.mesh.firewall.inbound = lib.singleton {
|
nebula.networks.mesh.firewall.inbound = lib.singleton {
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,10 @@ in
|
||||||
matchConfig.Name = netCfg.overlay.interface;
|
matchConfig.Name = netCfg.overlay.interface;
|
||||||
address = [ netCfg.overlay.cidr ];
|
address = [ netCfg.overlay.cidr ];
|
||||||
dns = netCfg.overlay.dnsServers;
|
dns = netCfg.overlay.dnsServers;
|
||||||
domains = [ netCfg.overlay.domain ];
|
domains = [
|
||||||
|
netCfg.overlay.domain
|
||||||
|
"~." # Route all DNS traffic to this interface first
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue