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 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'bragi.nix') 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"; + }; + }; } -- cgit v1.2.3