merge bridge services into one
This commit is contained in:
parent
a019e59a80
commit
6f92f8fa8b
5 changed files with 23 additions and 45 deletions
|
@ -79,18 +79,16 @@ in rec {
|
|||
};
|
||||
|
||||
services.int =
|
||||
let iface = svc.bridge.primary.build { ifname = "int"; };
|
||||
let iface = svc.bridge.build {
|
||||
ifname = "int";
|
||||
members = with config.hardware.networkInterfaces; [
|
||||
wlan_24 lan wlan_5
|
||||
];
|
||||
};
|
||||
in address iface {
|
||||
family = "inet4"; address ="10.8.0.1"; prefixLength = 16;
|
||||
};
|
||||
|
||||
services.bridge = svc.bridge.members.build {
|
||||
primary = services.int;
|
||||
members = with config.hardware.networkInterfaces; [
|
||||
wlan_24 lan wlan_5
|
||||
];
|
||||
};
|
||||
|
||||
services.ntp = svc.ntp.build {
|
||||
pools = { "pool.ntp.org" = ["iburst"]; };
|
||||
makestep = { threshold = 1.0; limit = 3; };
|
||||
|
@ -208,7 +206,6 @@ in rec {
|
|||
config.hardware.networkInterfaces.lo
|
||||
config.hardware.networkInterfaces.lan
|
||||
int
|
||||
bridge
|
||||
hostap
|
||||
hostap5
|
||||
ntp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue