diff --git a/modules/c3d2.nix b/modules/c3d2.nix index 29c89137..7a80531b 100644 --- a/modules/c3d2.nix +++ b/modules/c3d2.nix @@ -176,16 +176,28 @@ in users.motd = lib.mkIf cfg.enableMotd (builtins.readFile ./motd); - users.users.k-ot = lib.mkIf cfg.k-ot.enable { - packages = with pkgs; [ screen tmux ]; - createHome = true; - isNormalUser = true; - uid = 1000; - extraGroups = [ "audio" "video" "wheel" ]; - password = "k-otk-ot"; - openssh.authorizedKeys.keys = adminKeys; - }; + users = { + groups = { + pulse-access = { }; + }; + users = { + k-ot = lib.mkIf cfg.k-ot.enable { + packages = with pkgs; [ screen tmux ]; + createHome = true; + isNormalUser = true; + uid = 1000; + extraGroups = [ + "audio" + "pulse-access" # required for system wide pulseaudio + "video" + "wheel" + ]; + password = "k-otk-ot"; + openssh.authorizedKeys.keys = adminKeys; + }; - users.users.root.openssh.authorizedKeys.keys = lib.mkIf cfg.allUsersCanSshRoot adminKeys; + root.openssh.authorizedKeys.keys = lib.mkIf cfg.allUsersCanSshRoot adminKeys; + }; + }; }; }