diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-06-07 19:41:49 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-06-07 19:41:49 +0200 |
commit | b7a8a04d50d041eae76d20e7cdb33305f84c8b26 (patch) | |
tree | 5130f90594a11e587910c6aa19debf611170706b /bragi.nix | |
parent | b1562bb4ab36711d369c597d2b8630e0328eb393 (diff) | |
download | nixos-b7a8a04d50d041eae76d20e7cdb33305f84c8b26.tar nixos-b7a8a04d50d041eae76d20e7cdb33305f84c8b26.tar.gz nixos-b7a8a04d50d041eae76d20e7cdb33305f84c8b26.tar.bz2 nixos-b7a8a04d50d041eae76d20e7cdb33305f84c8b26.tar.xz nixos-b7a8a04d50d041eae76d20e7cdb33305f84c8b26.zip |
Reverted to jack as a service
Diffstat (limited to 'bragi.nix')
-rw-r--r-- | bragi.nix | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -64,9 +64,15 @@ | |||
64 | ''; | 64 | ''; |
65 | }; | 65 | }; |
66 | 66 | ||
67 | environment.etc."jackdrc".text = '' | 67 | systemd.services.jack = { |
68 | ${pkgs.jack2}/bin/jackd -d alsa -M -H -r 96000 | 68 | wantedBy = [ "sound.target" ]; |
69 | ''; | 69 | serviceConfig = { |
70 | Type = "simple"; | ||
71 | ExecStart = "${pkgs.jack2}/bin/jackd -d alsa -M -H -r 96000"; | ||
72 | User = "jack"; | ||
73 | Group = "audio"; | ||
74 | }; | ||
75 | }; | ||
70 | 76 | ||
71 | services.mpd = { | 77 | services.mpd = { |
72 | enable = true; | 78 | enable = true; |
@@ -80,6 +86,12 @@ | |||
80 | ''; | 86 | ''; |
81 | }; | 87 | }; |
82 | 88 | ||
89 | users.extraUsers.jack = { | ||
90 | name = "jack"; | ||
91 | isSystemUser = true; | ||
92 | group = "audio"; | ||
93 | }; | ||
94 | |||
83 | users.extraUsers.gkleen = { | 95 | users.extraUsers.gkleen = { |
84 | name = "gkleen"; | 96 | name = "gkleen"; |
85 | isNormalUser = true; | 97 | isNormalUser = true; |