diff options
Diffstat (limited to 'bragi.nix')
-rw-r--r-- | bragi.nix | 18 |
1 files changed, 3 insertions, 15 deletions
@@ -1,16 +1,6 @@ | |||
1 | { config, pkgs, ... }: | 1 | { config, pkgs, ... }: |
2 | let | 2 | |
3 | makemix = (n: { | 3 | { |
4 | wantedBy = [ "sound.target" ]; | ||
5 | requires = [ "jack.service" ]; | ||
6 | serviceConfig = { | ||
7 | Type = "simple"; | ||
8 | ExecStart = "${pkgs.trivmix}/bin/trivmix --client mix --input 'in_${n}' --output 'out_${n}' --dir /run/jackmix_${n}"; | ||
9 | User = "jack"; | ||
10 | Group = "audio"; | ||
11 | }; | ||
12 | }); | ||
13 | in { | ||
14 | imports = | 4 | imports = |
15 | [ | 5 | [ |
16 | ./bragi-hw.nix | 6 | ./bragi-hw.nix |
@@ -68,6 +58,7 @@ in { | |||
68 | tmux | 58 | tmux |
69 | nfs-utils | 59 | nfs-utils |
70 | jack2 | 60 | jack2 |
61 | trivmix | ||
71 | ]; | 62 | ]; |
72 | 63 | ||
73 | # List services that you want to enable: | 64 | # List services that you want to enable: |
@@ -102,9 +93,6 @@ in { | |||
102 | }; | 93 | }; |
103 | }; | 94 | }; |
104 | 95 | ||
105 | systemd.services."trivmix_0" = (makemix "0"); | ||
106 | systemd.services."trivmix_1" = (makemix "1"); | ||
107 | |||
108 | services.mpd = { | 96 | services.mpd = { |
109 | enable = true; | 97 | enable = true; |
110 | musicDirectory = "/media/odin/music"; | 98 | musicDirectory = "/media/odin/music"; |