extract bridge to module-based services

This commit is contained in:
Daniel Barlow
2023-07-20 11:46:19 +01:00
parent 86e73317ee
commit 9b70fd62f6
4 changed files with 88 additions and 23 deletions

View File

@@ -0,0 +1,22 @@
{
liminix
, lib
}:
let
inherit (liminix.networking) interface;
inherit (liminix.lib) typeChecked;
inherit (lib) mkOption types;
t = {
ifname = mkOption {
type = types.str;
description = "interface name for the bridge device";
};
};
in
params:
let
inherit (typeChecked "bridge" t params) ifname;
in interface {
device = ifname;
type = "bridge";
}