about summary refs log tree commit diff
path: root/machines/aszlig
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2021-07-04 15:52:33 +0200
committeraszlig <aszlig@nix.build>2021-07-04 15:53:07 +0200
commit0601360c183a064732bcaa4d0d0a75c6a635bcfb (patch)
tree7a322126802f6a0d4773fc6c68fa18b4a79d8ff1 /machines/aszlig
parent88fade55c65b1366b44847750742db481d4d07b1 (diff)
dnyarri: Remove the main user from the audio group
The user shouldn't have direct access to the /dev/snd/* but go through
things such as pulseaudio or pipewire. I added the user to that group
back then as a workaround to quickly get something[TM] working, but
nowadays it's not needed anymore.

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'machines/aszlig')
-rw-r--r--machines/aszlig/dnyarri.nix8
1 files changed, 1 insertions, 7 deletions
diff --git a/machines/aszlig/dnyarri.nix b/machines/aszlig/dnyarri.nix
index e395e387..97f2c73c 100644
--- a/machines/aszlig/dnyarri.nix
+++ b/machines/aszlig/dnyarri.nix
@@ -84,13 +84,7 @@ in {
     device = "/dev/mapper/${name}";
   }) cryptDevices.swap;
 
-  users.users.aszlig.extraGroups = [
-    "scanner"
-    # TODO: Try to avoid this, but as there is only a single user using audio
-    # on this machine, it's okay for now. But remember that this will break
-    # heavily, should there be another user accessing the audio devices.
-    "audio"
-  ];
+  users.users.aszlig.extraGroups = [ "scanner" ];
 
   services.xserver.videoDrivers = [ "amdgpu" ];
   services.xserver.xrandrHeads = [ "DisplayPort-0" "DisplayPort-1" ];