From ee61b44bd74df532d5d3bac74d8891b35589d9a5 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 18 Oct 2015 00:41:30 +0200 Subject: nicing passmix --- custom/trivmix-service.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'custom') diff --git a/custom/trivmix-service.nix b/custom/trivmix-service.nix index 0408ab83..d5819c4c 100644 --- a/custom/trivmix-service.nix +++ b/custom/trivmix-service.nix @@ -7,6 +7,7 @@ , stdenv , makeWrapper , jack2 +, coreutils }: let @@ -38,7 +39,7 @@ in rec { after = [ "jack.service" ]; serviceConfig = { Type = "simple"; - ExecStart = ''${trivmix}/bin/trivmix --client ${name} --run ${genRun} /dev/shm/mix/${name}/level${if ! isNull group then " /dev/shm/mix/${group}/level" else ""}''; + ExecStart = ''${coreutils}/bin/nice -n -10 -- ${trivmix}/bin/trivmix --client ${name} --run ${genRun} /dev/shm/mix/${name}/level${if ! isNull group then " /dev/shm/mix/${group}/level" else ""}''; User = "jack"; Group = "audio"; }; -- cgit v1.2.3