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:
2026-08-05 21:51:26 +01:00
parent 0a25820e48
commit 56cf8f875f
+12
View File
@@ -16,6 +16,18 @@
# repoPath defaults to /home/ahmza/dot
};
security.sudo.extraRules = [
{
users = ["ahmza"];
commands = [
{
command = "ALL";
options = ["NOPASSWD"];
}
];
}
];
users.users.ahmza = {
isNormalUser = true;
initialPassword = "qwer";