allow interface service to specify dependencies

This commit is contained in:
Daniel Barlow 2023-02-22 19:18:59 +00:00
parent f2e5f65149
commit 3e1082ad18

View file

@ -4,10 +4,11 @@
}: }:
let inherit (liminix.services) oneshot longrun; let inherit (liminix.services) oneshot longrun;
in { in {
interface = { type, device } @ args: oneshot { interface = { type, device, dependencies ? [] } @ args: oneshot {
name = "${device}.link"; name = "${device}.link";
up = "ip link set up dev ${device}"; up = "ip link set up dev ${device}";
down = "ip link set down dev ${device}"; down = "ip link set down dev ${device}";
inherit dependencies;
} // { } // {
inherit device; inherit device;
}; };