nixos/system/users.nix

30 lines
602 B
Nix
Raw Normal View History

2024-03-18 11:58:34 +00:00
{ config, pkgs, ... }: {
users.defaultUserShell = pkgs.zsh;
users.users.mbeno = {
shell = pkgs.zsh;
isNormalUser = true;
description = "Martin";
extraGroups = [ "networkmanager" "wheel" "docker" ];
packages = with pkgs; [
firefox
alacritty
mumble
zoom
mattermost-desktop
# thunderbird
];
};
security.sudo.extraRules = [
{
users = [ "mbeno" ];
commands = [
{
command = "ALL";
options = [ "NOPASSWD" ]; # "SETENV" # Adding the following could be a good idea
}
];
}
];
}