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.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;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user