config/systems/desktop/doas.nix

14 lines
205 B
Nix
Raw Normal View History

2024-09-15 12:56:25 +01:00
{ username, ... }:
{
security.sudo.enable = false;
security.doas = {
enable = true;
extraRules = [{
users = [ "${username}" ];
keepEnv = true;
persist = true;
}];
};
}