diff options
-rw-r--r-- | bragi.nix | 22 | ||||
m--------- | custom/trivmix | 0 | ||||
-rw-r--r-- | custom/trivmix-service.nix | 3 | ||||
l--------- | custom/trivmix.nix | 1 |
4 files changed, 13 insertions, 13 deletions
@@ -32,7 +32,7 @@ in rec { | |||
32 | overrides = self: super: let | 32 | overrides = self: super: let |
33 | callPackage = pkgs.lib.callPackageWith ( pkgs // self ); | 33 | callPackage = pkgs.lib.callPackageWith ( pkgs // self ); |
34 | in { | 34 | in { |
35 | trivmix = callPackage ./custom/trivmix.nix {}; | 35 | trivmix = callPackage ./custom/trivmix {}; |
36 | }; | 36 | }; |
37 | } | 37 | } |
38 | ); | 38 | ); |
@@ -124,20 +124,20 @@ in rec { | |||
124 | }; | 124 | }; |
125 | }; | 125 | }; |
126 | 126 | ||
127 | systemd.services."mpdmix0" = trivmixService { name = "mpdmix0"; connectOut = "system:playback_3"; group = "mpd"; }; | 127 | systemd.services."mpdmix0" = trivmixService { name = "mpdmix0"; connectOut = "system:playback_3"; group = "mpd"; initial = "-35dB"; }; |
128 | systemd.services."mpdmix1" = trivmixService { name = "mpdmix1"; connectOut = "system:playback_4"; group = "mpd"; }; | 128 | systemd.services."mpdmix1" = trivmixService { name = "mpdmix1"; connectOut = "system:playback_4"; group = "mpd"; initial = "-35dB"; }; |
129 | 129 | ||
130 | systemd.services."passmix0" = trivmixService { name = "passmix0"; connectOut = "system:playback_3"; connectIn = "system:capture_5"; group = "vali_out"; }; | 130 | systemd.services."passmix0" = trivmixService { name = "passmix0"; connectOut = "system:playback_3"; connectIn = "system:capture_5"; group = "vali_out"; initial = "-20dB"; }; |
131 | systemd.services."passmix1" = trivmixService { name = "passmix1"; connectOut = "system:playback_4"; connectIn = "system:capture_6"; group = "vali_out"; }; | 131 | systemd.services."passmix1" = trivmixService { name = "passmix1"; connectOut = "system:playback_4"; connectIn = "system:capture_6"; group = "vali_out"; initial = "-20dB"; }; |
132 | 132 | ||
133 | systemd.services."passmix2" = trivmixService { name = "passmix2"; connectOut = "system:playback_5"; connectIn = "system:capture_1"; group = "vali_in"; }; | 133 | systemd.services."passmix2" = trivmixService { name = "passmix2"; connectOut = "system:playback_5"; connectIn = "system:capture_1"; group = "vali_in"; initial = "1"; }; |
134 | systemd.services."passmix3" = trivmixService { name = "passmix3"; connectOut = "system:playback_6"; connectIn = "system:capture_1"; group = "vali_in"; }; | 134 | systemd.services."passmix3" = trivmixService { name = "passmix3"; connectOut = "system:playback_6"; connectIn = "system:capture_1"; group = "vali_in"; initial = "1"; }; |
135 | 135 | ||
136 | systemd.services."passmix4" = trivmixService { name = "passmix4"; connectOut = "system:playback_3"; connectIn = "system:capture_7"; group = "hel_out"; }; | 136 | systemd.services."passmix4" = trivmixService { name = "passmix4"; connectOut = "system:playback_3"; connectIn = "system:capture_7"; group = "hel_out"; initial = "-17.5dB"; }; |
137 | systemd.services."passmix5" = trivmixService { name = "passmix5"; connectOut = "system:playback_4"; connectIn = "system:capture_8"; group = "hel_out"; }; | 137 | systemd.services."passmix5" = trivmixService { name = "passmix5"; connectOut = "system:playback_4"; connectIn = "system:capture_8"; group = "hel_out"; initial = "-17.5dB"; }; |
138 | 138 | ||
139 | systemd.services."passmix6" = trivmixService { name = "passmix6"; connectOut = "system:playback_7"; connectIn = "system:capture_1"; group = "hel_in"; }; | 139 | systemd.services."passmix6" = trivmixService { name = "passmix6"; connectOut = "system:playback_7"; connectIn = "system:capture_1"; group = "hel_in"; initial = "1"; }; |
140 | systemd.services."passmix7" = trivmixService { name = "passmix7"; connectOut = "system:playback_8"; connectIn = "system:capture_1"; group = "hel_in"; }; | 140 | systemd.services."passmix7" = trivmixService { name = "passmix7"; connectOut = "system:playback_8"; connectIn = "system:capture_1"; group = "hel_in"; initial = "1"; }; |
141 | 141 | ||
142 | services.mpd = { | 142 | services.mpd = { |
143 | enable = true; | 143 | enable = true; |
diff --git a/custom/trivmix b/custom/trivmix | |||
Subproject c22d1fbab9ffd09d461b82b096d9cac0edea777 | Subproject 6454da50559e0eee810f81d33365a621857d806 | ||
diff --git a/custom/trivmix-service.nix b/custom/trivmix-service.nix index 3c3cded7..09a6dd3b 100644 --- a/custom/trivmix-service.nix +++ b/custom/trivmix-service.nix | |||
@@ -3,6 +3,7 @@ | |||
3 | , connectOut ? null | 3 | , connectOut ? null |
4 | , connectIn ? null | 4 | , connectIn ? null |
5 | , group ? null | 5 | , group ? null |
6 | , initial ? null | ||
6 | , trivmix | 7 | , trivmix |
7 | , stdenv | 8 | , stdenv |
8 | , makeWrapper | 9 | , makeWrapper |
@@ -39,7 +40,7 @@ in rec { | |||
39 | before = [ "mpd.service" ]; | 40 | before = [ "mpd.service" ]; |
40 | serviceConfig = { | 41 | serviceConfig = { |
41 | Type = "simple"; | 42 | 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 ""}''; | 43 | ExecStart = ''${trivmix}/bin/trivmix --client ${name} --run ${genRun}${optionalString (initial != null) " --level ${initial}"} /dev/shm/mix/${name}/level${if ! isNull group then " /dev/shm/mix/${group}/level" else ""}''; |
43 | User = "jack"; | 44 | User = "jack"; |
44 | Group = "audio"; | 45 | Group = "audio"; |
45 | Nice = "-10"; | 46 | Nice = "-10"; |
diff --git a/custom/trivmix.nix b/custom/trivmix.nix deleted file mode 120000 index c2f64840..00000000 --- a/custom/trivmix.nix +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | trivmix/package.nix \ No newline at end of file | ||