convert bridge service to serviceDefn
This commit is contained in:
parent
f82501d278
commit
93e04bb834
4 changed files with 25 additions and 33 deletions
|
@ -2,20 +2,11 @@
|
|||
liminix
|
||||
, lib
|
||||
}:
|
||||
{ ifname } :
|
||||
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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue