Give k-ot pulse-access group for system wide pulseaudio
This commit is contained in:
parent
001c61293f
commit
69a47c0b7f
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue