allow passwordless sudo for ahmza
adds security.sudo.extraRules with NOPASSWD: ALL. the rule is emitted after the default %wheel SETENV rule and sudoers is last-match-wins, so it takes precedence. lives in the shared user module, so it applies to both shadow and t480.
This commit is contained in:
@@ -16,6 +16,18 @@
|
|||||||
# repoPath defaults to /home/ahmza/dot
|
# repoPath defaults to /home/ahmza/dot
|
||||||
};
|
};
|
||||||
|
|
||||||
|
security.sudo.extraRules = [
|
||||||
|
{
|
||||||
|
users = ["ahmza"];
|
||||||
|
commands = [
|
||||||
|
{
|
||||||
|
command = "ALL";
|
||||||
|
options = ["NOPASSWD"];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
users.users.ahmza = {
|
users.users.ahmza = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
initialPassword = "qwer";
|
initialPassword = "qwer";
|
||||||
|
|||||||
Reference in New Issue
Block a user