2024-11-08 18:23:40 +01:00
|
|
|
{username, ...}: {
|
2024-10-15 20:13:25 +02:00
|
|
|
security.doas.enable = true;
|
|
|
|
security.sudo.enable = false;
|
|
|
|
security.doas.extraRules = [
|
|
|
|
{
|
2024-11-08 18:23:40 +01:00
|
|
|
users = [username];
|
2024-10-15 20:13:25 +02:00
|
|
|
keepEnv = true;
|
|
|
|
persist = true;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|