merge bridge services into one

This commit is contained in:
Daniel Barlow 2023-08-16 19:44:00 +01:00
parent a019e59a80
commit 6f92f8fa8b
5 changed files with 23 additions and 45 deletions

View file

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