diff options
-rw-r--r-- | bragi.nix | 3 | ||||
-rw-r--r-- | custom/trivmix-service.nix | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -157,6 +157,9 @@ in rec { | |||
157 | group = "audio"; | 157 | group = "audio"; |
158 | }; | 158 | }; |
159 | systemd.services."mpd".requires = [ "jack.service" ]; | 159 | systemd.services."mpd".requires = [ "jack.service" ]; |
160 | systemd.services."mpd".serviceConfig = { | ||
161 | LimitMEMLOCK = "infinity"; | ||
162 | }; | ||
160 | 163 | ||
161 | users.extraUsers.jack = { | 164 | users.extraUsers.jack = { |
162 | name = "jack"; | 165 | name = "jack"; |
diff --git a/custom/trivmix-service.nix b/custom/trivmix-service.nix index 5a1842fc..976397b2 100644 --- a/custom/trivmix-service.nix +++ b/custom/trivmix-service.nix | |||
@@ -36,7 +36,7 @@ in rec { | |||
36 | out = { | 36 | out = { |
37 | wantedBy = [ "sound.target" ]; | 37 | wantedBy = [ "sound.target" ]; |
38 | requires = [ "jack.service" ]; | 38 | requires = [ "jack.service" ]; |
39 | after = [ "jack.service" ]; | 39 | before = [ "mpd.service" ]; |
40 | serviceConfig = { | 40 | serviceConfig = { |
41 | Type = "simple"; | 41 | Type = "simple"; |
42 | 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 = ''${trivmix}/bin/trivmix --client ${name} --run ${genRun} /dev/shm/mix/${name}/level${if ! isNull group then " /dev/shm/mix/${group}/level" else ""}''; |