26 lines
492 B
Nix
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;
|
|
};
|
|
};
|
|
# };
|
|
}
|