From f7f1c1771df4be36bc6cc089d551bcd72c91217b Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 3 Sep 2017 22:52:40 +0200 Subject: mixer dependencies --- custom/trivmix-service.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'custom') diff --git a/custom/trivmix-service.nix b/custom/trivmix-service.nix index a0c46db6..985ded80 100644 --- a/custom/trivmix-service.nix +++ b/custom/trivmix-service.nix @@ -56,9 +56,11 @@ let ''; connect = (connectOut != []) || (connectIn != []) || (onConnect != []); + + mixerDeps = filter (x: any (hasPrefix (x + ":")) connectIn || any (hasPrefix (x + ":")) connectOut) (attrNames cfg); in { wantedBy = [ "sound.target" ]; - requires = [ "jack.service" ]; + requires = [ "jack.service" ] ++ map (n: n + ".service") mixerDeps; path = with pkgs; [ jack2Full ]; serviceConfig = { Type = "simple"; -- cgit v1.2.3