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
1 changed files with 22 additions and 10 deletions

View File

@ -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;
};
};
};
}