From bf3f3f6cfc7bc39ea8dab7164ec4ed0e385bebe8 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 7 Jun 2015 14:52:31 +0200 Subject: jack systemd service --- bragi.nix | 14 ++++++++++++-- jack2.nix | 1 - 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 @@ { config, pkgs, ... }: -{ +let + jack2 = pkgs.callPackage ./jack2.nix {}; +in { imports = [ ./bragi-hw.nix @@ -31,7 +33,7 @@ rsync tmux nfs-utils - (callPackage ./jack2.nix {}) + jack2 ]; # List services that you want to enable: @@ -78,4 +80,12 @@ { domain = "@audio"; item = "nofile"; type = "soft"; value = "99999"; } { domain = "@audio"; item = "nofile"; type = "hard"; value = "99999"; } ]; + + systemd.services.jack = { + wantedBy = [ "sound.target" ]; + serviceConfig = { + Type = "simple"; + ExecStart = "${jack2}/bin/jackd -d alsa -M -H -r 96000"; + }; + }; } 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 { homepage = "http://jackaudio.org"; license = licenses.gpl2Plus; platforms = platforms.linux; - maintainers = [ maintainers.goibhniu ]; }; } -- cgit v1.2.3