diff options
Diffstat (limited to 'custom')
-rw-r--r-- | custom/trivmix-service.nix | 4 |
1 files changed, 3 insertions, 1 deletions
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 | |||
56 | ''; | 56 | ''; |
57 | 57 | ||
58 | connect = (connectOut != []) || (connectIn != []) || (onConnect != []); | 58 | connect = (connectOut != []) || (connectIn != []) || (onConnect != []); |
59 | |||
60 | mixerDeps = filter (x: any (hasPrefix (x + ":")) connectIn || any (hasPrefix (x + ":")) connectOut) (attrNames cfg); | ||
59 | in { | 61 | in { |
60 | wantedBy = [ "sound.target" ]; | 62 | wantedBy = [ "sound.target" ]; |
61 | requires = [ "jack.service" ]; | 63 | requires = [ "jack.service" ] ++ map (n: n + ".service") mixerDeps; |
62 | path = with pkgs; [ jack2Full ]; | 64 | path = with pkgs; [ jack2Full ]; |
63 | serviceConfig = { | 65 | serviceConfig = { |
64 | Type = "simple"; | 66 | Type = "simple"; |