diff options
Diffstat (limited to 'custom')
| -rw-r--r-- | custom/trivmix-service.nix | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ | |||
| 7 | , stdenv | 7 | , stdenv |
| 8 | , makeWrapper | 8 | , makeWrapper |
| 9 | , jack2 | 9 | , jack2 |
| 10 | , coreutils | ||
| 10 | }: | 11 | }: |
| 11 | 12 | ||
| 12 | let | 13 | let |
| @@ -38,7 +39,7 @@ in rec { | |||
| 38 | after = [ "jack.service" ]; | 39 | after = [ "jack.service" ]; |
| 39 | serviceConfig = { | 40 | serviceConfig = { |
| 40 | Type = "simple"; | 41 | Type = "simple"; |
| 41 | ExecStart = ''${trivmix}/bin/trivmix --client ${name} --run ${genRun} /dev/shm/mix/${name}/level${if ! isNull group then " /dev/shm/mix/${group}/level" else ""}''; | 42 | 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 ""}''; |
| 42 | User = "jack"; | 43 | User = "jack"; |
| 43 | Group = "audio"; | 44 | Group = "audio"; |
| 44 | }; | 45 | }; |
