diff options
-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; |