commit e577caa15f14c94818f1da699ff058275f95c4dc
parent 7faf620c0bc5505d93f577ee931332c37b0c31db
Author: Daniel Barlow <dan@telent.net>
Date: Thu, 31 Aug 2023 18:29:45 +0100
extneder: use bridge module
Diffstat:
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/examples/extneder.nix b/examples/extneder.nix
@@ -31,6 +31,7 @@ in rec {
imports = [
../modules/wlan.nix
+ ../modules/vlan
../modules/network
../modules/hostapd
../modules/bridge
@@ -88,9 +89,8 @@ in rec {
};
};
- services.int = interface {
- type = "bridge";
- device = "int";
+ services.int = svc.bridge.primary.build {
+ ifname = "int";
};
services.dhcpc = svc.network.dhcp.client.build {
diff --git a/modules/bridge/primary.nix b/modules/bridge/primary.nix
@@ -5,7 +5,6 @@
}:
{ ifname } :
let
- inherit (liminix.networking) interface;
inherit (liminix.services) bundle oneshot;
inherit (lib) mkOption types;
in oneshot rec {