From b7a8a04d50d041eae76d20e7cdb33305f84c8b26 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 7 Jun 2015 19:41:49 +0200 Subject: Reverted to jack as a service --- bragi.nix | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/bragi.nix b/bragi.nix index a0448bbb..ff55b512 100644 --- a/bragi.nix +++ b/bragi.nix @@ -64,9 +64,15 @@ ''; }; - environment.etc."jackdrc".text = '' - ${pkgs.jack2}/bin/jackd -d alsa -M -H -r 96000 - ''; + systemd.services.jack = { + wantedBy = [ "sound.target" ]; + serviceConfig = { + Type = "simple"; + ExecStart = "${pkgs.jack2}/bin/jackd -d alsa -M -H -r 96000"; + User = "jack"; + Group = "audio"; + }; + }; services.mpd = { enable = true; @@ -80,6 +86,12 @@ ''; }; + users.extraUsers.jack = { + name = "jack"; + isSystemUser = true; + group = "audio"; + }; + users.extraUsers.gkleen = { name = "gkleen"; isNormalUser = true; -- cgit v1.2.3