summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-06-09 22:36:24 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2015-06-09 22:36:24 +0200
commit10118c59ec1dc72f510d1b81c3e0a30866096e90 (patch)
treebcdc3fc20cf747e363919ea02ea13877b3161c53
parent5d5ccae877374a1cc4796e401a7911f3c43dd233 (diff)
downloadnixos-10118c59ec1dc72f510d1b81c3e0a30866096e90.tar
nixos-10118c59ec1dc72f510d1b81c3e0a30866096e90.tar.gz
nixos-10118c59ec1dc72f510d1b81c3e0a30866096e90.tar.bz2
nixos-10118c59ec1dc72f510d1b81c3e0a30866096e90.tar.xz
nixos-10118c59ec1dc72f510d1b81c3e0a30866096e90.zip
new trivmix config with groups
-rw-r--r--bragi.nix12
-rw-r--r--custom/trivmix-service.nix3
2 files changed, 8 insertions, 7 deletions
diff --git a/bragi.nix b/bragi.nix
index a4ef67ab..6672274f 100644
--- a/bragi.nix
+++ b/bragi.nix
@@ -96,14 +96,14 @@
96 }; 96 };
97 }; 97 };
98 98
99 systemd.services."mpdmix0" = (pkgs.callPackage ./custom/trivmix-service.nix { name = "mpdmix0"; connectOut = "system:playback_3"; }).out; 99 systemd.services."mpdmix0" = (pkgs.callPackage ./custom/trivmix-service.nix { name = "mpdmix0"; connectOut = "system:playback_3"; group = "mpd"; }).out;
100 systemd.services."mpdmix1" = (pkgs.callPackage ./custom/trivmix-service.nix { name = "mpdmix1"; connectOut = "system:playback_4"; }).out; 100 systemd.services."mpdmix1" = (pkgs.callPackage ./custom/trivmix-service.nix { name = "mpdmix1"; connectOut = "system:playback_4"; group = "mpd"; }).out;
101 101
102 systemd.services."passmix0" = (pkgs.callPackage ./custom/trivmix-service.nix { name = "passmix0"; connectOut = "system:playback_3"; connectIn = "system:capture_5"; }).out; 102 systemd.services."passmix0" = (pkgs.callPackage ./custom/trivmix-service.nix { name = "passmix0"; connectOut = "system:playback_3"; connectIn = "system:capture_5"; group = "vali_out"; }).out;
103 systemd.services."passmix1" = (pkgs.callPackage ./custom/trivmix-service.nix { name = "passmix1"; connectOut = "system:playback_4"; connectIn = "system:capture_6"; }).out; 103 systemd.services."passmix1" = (pkgs.callPackage ./custom/trivmix-service.nix { name = "passmix1"; connectOut = "system:playback_4"; connectIn = "system:capture_6"; group = "vali_out"; }).out;
104 104
105 systemd.services."passmix2" = (pkgs.callPackage ./custom/trivmix-service.nix { name = "passmix2"; connectOut = "system:playback_5"; connectIn = "system:capture_1"; }).out; 105 systemd.services."passmix2" = (pkgs.callPackage ./custom/trivmix-service.nix { name = "passmix2"; connectOut = "system:playback_5"; connectIn = "system:capture_1"; group = "vali_in"; }).out;
106 systemd.services."passmix3" = (pkgs.callPackage ./custom/trivmix-service.nix { name = "passmix3"; connectOut = "system:playback_6"; connectIn = "system:capture_1"; }).out; 106 systemd.services."passmix3" = (pkgs.callPackage ./custom/trivmix-service.nix { name = "passmix3"; connectOut = "system:playback_6"; connectIn = "system:capture_1"; group = "vali_in"; }).out;
107 107
108 services.mpd = { 108 services.mpd = {
109 enable = true; 109 enable = true;
diff --git a/custom/trivmix-service.nix b/custom/trivmix-service.nix
index ba65ba0a..c9840c35 100644
--- a/custom/trivmix-service.nix
+++ b/custom/trivmix-service.nix
@@ -2,6 +2,7 @@
2, run ? null 2, run ? null
3, connectOut ? null 3, connectOut ? null
4, connectIn ? null 4, connectIn ? null
5, group ? null
5, trivmix 6, trivmix
6, stdenv 7, stdenv
7, makeWrapper 8, makeWrapper
@@ -36,7 +37,7 @@ in rec {
36 requires = [ "jack.service" ]; 37 requires = [ "jack.service" ];
37 serviceConfig = { 38 serviceConfig = {
38 Type = "simple"; 39 Type = "simple";
39 ExecStart = "${trivmix}/bin/trivmix --client ${name} --run ${genRun} --dir /dev/shm/${name}"; 40 ExecStart = "${trivmix}/bin/trivmix --client ${name} --run ${genRun} --level /dev/shm/mix/${name}/level${if ! isNull group then \" --dir /dev/shm/mix/${group}/level\" else \"\"}";
40 User = "jack"; 41 User = "jack";
41 Group = "audio"; 42 Group = "audio";
42 }; 43 };