diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-06-07 23:10:21 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-06-07 23:10:21 +0200 |
commit | 16218b6332c4097374f2b81c86fcb76f50695c88 (patch) | |
tree | efb0f0f87b5055c3d2059ed88f8b25b42b3758b6 | |
parent | f1abbf1435c9bcd92cf28f643217f37b95c1aa93 (diff) | |
download | nixos-16218b6332c4097374f2b81c86fcb76f50695c88.tar nixos-16218b6332c4097374f2b81c86fcb76f50695c88.tar.gz nixos-16218b6332c4097374f2b81c86fcb76f50695c88.tar.bz2 nixos-16218b6332c4097374f2b81c86fcb76f50695c88.tar.xz nixos-16218b6332c4097374f2b81c86fcb76f50695c88.zip |
insulated derivations
-rw-r--r-- | bragi.nix | 4 | ||||
-rw-r--r-- | custom/trivmix-service.nix | 16 |
2 files changed, 11 insertions, 9 deletions
@@ -93,8 +93,8 @@ | |||
93 | }; | 93 | }; |
94 | }; | 94 | }; |
95 | 95 | ||
96 | systemd.services."mpdmix0" = pkgs.callPackage ./custom/trivmix-service.nix { name = "mpdmix0"; connectOut = "system:playback_3"; }; | 96 | systemd.services."mpdmix0" = (pkgs.callPackage ./custom/trivmix-service.nix { name = "mpdmix0"; connectOut = "system:playback_3"; }).out; |
97 | systemd.services."mpdmix1" = pkgs.callPackage ./custom/trivmix-service.nix { name = "mpdmix1"; connectOut = "system:playback_4"; }; | 97 | systemd.services."mpdmix1" = (pkgs.callPackage ./custom/trivmix-service.nix { name = "mpdmix1"; connectOut = "system:playback_4"; }).out; |
98 | 98 | ||
99 | services.mpd = { | 99 | services.mpd = { |
100 | enable = true; | 100 | enable = true; |
diff --git a/custom/trivmix-service.nix b/custom/trivmix-service.nix index 76b1af6f..da630670 100644 --- a/custom/trivmix-service.nix +++ b/custom/trivmix-service.nix | |||
@@ -31,12 +31,14 @@ let | |||
31 | ''; | 31 | ''; |
32 | }; | 32 | }; |
33 | in rec { | 33 | in rec { |
34 | wantedBy = [ "sound.target" ]; | 34 | out = { |
35 | requires = [ "jack.service" ]; | 35 | wantedBy = [ "sound.target" ]; |
36 | serviceConfig = { | 36 | requires = [ "jack.service" ]; |
37 | Type = "simple"; | 37 | serviceConfig = { |
38 | ExecStart = "${trivmix} --client ${name} --run ${genRun} --dir /run/${name}"; | 38 | Type = "simple"; |
39 | User = "jack"; | 39 | ExecStart = "${trivmix} --client ${name} --run ${genRun} --dir /run/${name}"; |
40 | Group = "audio"; | 40 | User = "jack"; |
41 | Group = "audio"; | ||
42 | }; | ||
41 | }; | 43 | }; |
42 | } | 44 | } |