nix/modules/system/doas/default.nix
2024-11-17 12:56:34 +01:00

12 lines
202 B
Nix

{username, ...}: {
security.doas.enable = true;
security.sudo.enable = false;
security.doas.extraRules = [
{
users = [username];
keepEnv = true;
persist = true;
}
];
}