nix/modules/system/doas/default.nix
2024-11-08 18:23:40 +01:00

14 lines
281 B
Nix

{username, ...}: {
security.doas.enable = true;
security.sudo.enable = false;
security.doas.extraRules = [
{
users = [username];
keepEnv = true;
persist = true;
}
];
programs.git.enable = true;
programs.git.config = {safe.directory = "*";};
}