1
Fork 0
satellite/modules/users.nix
Matei Adriel c7b01d9b6d uh
2022-06-22 23:09:55 +03:00

26 lines
492 B
Nix

{ pkgs, ... }:
with import ../secrets.nix; {
# Disable asking for password for sudo
security.sudo.extraRules = [
{
users = [ "adrielus" ];
commands = [{
command = "ALL";
options = [ "SETENV" "NOPASSWD" ];
}];
}
];
users = {
mutableUsers = false;
users.adrielus = {
inherit hashedPassword;
extraGroups = [ "wheel" "networkmanager" "lp" "docker" ];
isNormalUser = true;
shell = pkgs.fish;
};
};
# };
}