Give k-ot pulse-access group for system wide pulseaudio

This commit is contained in:
Sandro - 2022-07-09 15:42:45 +02:00
parent 001c61293f
commit 69a47c0b7f
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -176,16 +176,28 @@ in
users.motd = lib.mkIf cfg.enableMotd (builtins.readFile ./motd); users.motd = lib.mkIf cfg.enableMotd (builtins.readFile ./motd);
users.users.k-ot = lib.mkIf cfg.k-ot.enable { users = {
packages = with pkgs; [ screen tmux ]; groups = {
createHome = true; pulse-access = { };
isNormalUser = true; };
uid = 1000; users = {
extraGroups = [ "audio" "video" "wheel" ]; k-ot = lib.mkIf cfg.k-ot.enable {
password = "k-otk-ot"; packages = with pkgs; [ screen tmux ];
openssh.authorizedKeys.keys = adminKeys; 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;
};
};
}; };
} }