27 lines
541 B
Nix
27 lines
541 B
Nix
{ pkgs, inputs, config, keys, ... }: {
|
||
users.users.gortium = {
|
||
isNormalUser = true;
|
||
extraGroups = [ "wheel" "docker" ]; # Enable ‘sudo’ for the user.
|
||
packages = with pkgs; [
|
||
tree
|
||
btop
|
||
];
|
||
shell = pkgs.zsh;
|
||
openssh.authorizedKeys.keys = [
|
||
keys.users.gortium.main
|
||
];
|
||
};
|
||
programs.zsh.enable = true;
|
||
security.sudo.extraRules = [
|
||
{
|
||
users = [ "gortium" ];
|
||
commands = [
|
||
{
|
||
command = "ALL";
|
||
options = [ "NOPASSWD" ];
|
||
}
|
||
];
|
||
}
|
||
];
|
||
}
|