From 3e1082ad18f3ed0ecd655a72d42e60283355f030 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Wed, 22 Feb 2023 19:18:59 +0000 Subject: [PATCH] allow interface service to specify dependencies --- pkgs/liminix-tools/networking/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/liminix-tools/networking/default.nix b/pkgs/liminix-tools/networking/default.nix index c1818fe..b809843 100644 --- a/pkgs/liminix-tools/networking/default.nix +++ b/pkgs/liminix-tools/networking/default.nix @@ -4,10 +4,11 @@ }: let inherit (liminix.services) oneshot longrun; in { - interface = { type, device } @ args: oneshot { + interface = { type, device, dependencies ? [] } @ args: oneshot { name = "${device}.link"; up = "ip link set up dev ${device}"; down = "ip link set down dev ${device}"; + inherit dependencies; } // { inherit device; };