nix/modules/system/doas/default.nix

12 lines
202 B
Nix
Raw Normal View History

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;
}
];
}