summaryrefslogtreecommitdiffstats
path: root/tv/2configs/pulse.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2017-03-06 13:11:21 +0100
committertv <tv@krebsco.de>2017-03-06 13:12:32 +0100
commit0953240b832117aef4d2ee3cc9cb1ff0e606242e (patch)
tree736da39cc77d6b5ce967f7147109911ab1c7d090 /tv/2configs/pulse.nix
parentea303cfd559599463eab912277faed072ba82a0f (diff)
tv pulse: talk about hijacking audio devices
Diffstat (limited to 'tv/2configs/pulse.nix')
-rw-r--r--tv/2configs/pulse.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/tv/2configs/pulse.nix b/tv/2configs/pulse.nix
index 2a3b5cbc1..418551213 100644
--- a/tv/2configs/pulse.nix
+++ b/tv/2configs/pulse.nix
@@ -76,6 +76,9 @@ in
};
};
+ # TODO assert that pulse is the only user with "audio" in group/extraGroups
+ # otherwise the audio device can be hijacked while the pulse service restarts
+ # (e.g. when mpv is running) and then the service will fail.
users = {
groups.pulse.gid = config.users.users.pulse.uid;
users.pulse = {