From dd75a52d28654c5c5a5aa6de51930376e27b3494 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 17 Sep 2022 22:15:13 +0200 Subject: [PATCH] Move audio groups to audio module --- config/audio-server/default.nix | 10 ++++++++++ modules/c3d2.nix | 4 ---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/config/audio-server/default.nix b/config/audio-server/default.nix index 52ad7384..9bcb5131 100644 --- a/config/audio-server/default.nix +++ b/config/audio-server/default.nix @@ -70,5 +70,15 @@ RestartSec = 60; }; }; + + users = { + groups = { + pulse-access = { }; + }; + users.k-ot.extraGroups = [ + "pipewire" + "pulse-access" # required for system wide pulseaudio + ]; + }; }; } diff --git a/modules/c3d2.nix b/modules/c3d2.nix index 3140cec3..ead2b8ba 100644 --- a/modules/c3d2.nix +++ b/modules/c3d2.nix @@ -182,9 +182,6 @@ in users.motd = lib.mkIf cfg.enableMotd (builtins.readFile ./motd); users = { - groups = { - pulse-access = { }; - }; users = { k-ot = lib.mkIf cfg.k-ot.enable { packages = with pkgs; [ screen tmux ]; @@ -193,7 +190,6 @@ in uid = 1000; extraGroups = [ "audio" - "pulse-access" # required for system wide pulseaudio "video" "wheel" ];