extneder: use bridge module
This commit is contained in:
parent
7faf620c0b
commit
e577caa15f
2 changed files with 3 additions and 4 deletions
|
@ -31,6 +31,7 @@ in rec {
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
../modules/wlan.nix
|
../modules/wlan.nix
|
||||||
|
../modules/vlan
|
||||||
../modules/network
|
../modules/network
|
||||||
../modules/hostapd
|
../modules/hostapd
|
||||||
../modules/bridge
|
../modules/bridge
|
||||||
|
@ -88,9 +89,8 @@ in rec {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.int = interface {
|
services.int = svc.bridge.primary.build {
|
||||||
type = "bridge";
|
ifname = "int";
|
||||||
device = "int";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.dhcpc = svc.network.dhcp.client.build {
|
services.dhcpc = svc.network.dhcp.client.build {
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
}:
|
}:
|
||||||
{ ifname } :
|
{ ifname } :
|
||||||
let
|
let
|
||||||
inherit (liminix.networking) interface;
|
|
||||||
inherit (liminix.services) bundle oneshot;
|
inherit (liminix.services) bundle oneshot;
|
||||||
inherit (lib) mkOption types;
|
inherit (lib) mkOption types;
|
||||||
in oneshot rec {
|
in oneshot rec {
|
||||||
|
|
Loading…
Reference in a new issue