summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-06-07 14:52:31 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2015-06-07 14:52:31 +0200
commitbf3f3f6cfc7bc39ea8dab7164ec4ed0e385bebe8 (patch)
tree2f6f161b8160d63538d74697be7ba8b883ac6890
parentd7bf1f9193c46ee4b66c7bc0e7341095adb00bfd (diff)
downloadnixos-bf3f3f6cfc7bc39ea8dab7164ec4ed0e385bebe8.tar
nixos-bf3f3f6cfc7bc39ea8dab7164ec4ed0e385bebe8.tar.gz
nixos-bf3f3f6cfc7bc39ea8dab7164ec4ed0e385bebe8.tar.bz2
nixos-bf3f3f6cfc7bc39ea8dab7164ec4ed0e385bebe8.tar.xz
nixos-bf3f3f6cfc7bc39ea8dab7164ec4ed0e385bebe8.zip
jack systemd service
-rw-r--r--bragi.nix14
-rw-r--r--jack2.nix1
2 files changed, 12 insertions, 3 deletions
diff --git a/bragi.nix b/bragi.nix
index d77bc991..ba127f1c 100644
--- a/bragi.nix
+++ b/bragi.nix
@@ -1,6 +1,8 @@
1{ config, pkgs, ... }: 1{ config, pkgs, ... }:
2 2
3{ 3let
4 jack2 = pkgs.callPackage ./jack2.nix {};
5in {
4 imports = 6 imports =
5 [ 7 [
6 ./bragi-hw.nix 8 ./bragi-hw.nix
@@ -31,7 +33,7 @@
31 rsync 33 rsync
32 tmux 34 tmux
33 nfs-utils 35 nfs-utils
34 (callPackage ./jack2.nix {}) 36 jack2
35 ]; 37 ];
36 38
37 # List services that you want to enable: 39 # List services that you want to enable:
@@ -78,4 +80,12 @@
78 { domain = "@audio"; item = "nofile"; type = "soft"; value = "99999"; } 80 { domain = "@audio"; item = "nofile"; type = "soft"; value = "99999"; }
79 { domain = "@audio"; item = "nofile"; type = "hard"; value = "99999"; } 81 { domain = "@audio"; item = "nofile"; type = "hard"; value = "99999"; }
80 ]; 82 ];
83
84 systemd.services.jack = {
85 wantedBy = [ "sound.target" ];
86 serviceConfig = {
87 Type = "simple";
88 ExecStart = "${jack2}/bin/jackd -d alsa -M -H -r 96000";
89 };
90 };
81} 91}
diff --git a/jack2.nix b/jack2.nix
index 15fddc41..f4f8fcaf 100644
--- a/jack2.nix
+++ b/jack2.nix
@@ -43,6 +43,5 @@ stdenv.mkDerivation rec {
43 homepage = "http://jackaudio.org"; 43 homepage = "http://jackaudio.org";
44 license = licenses.gpl2Plus; 44 license = licenses.gpl2Plus;
45 platforms = platforms.linux; 45 platforms = platforms.linux;
46 maintainers = [ maintainers.goibhniu ];
47 }; 46 };
48} 47}