config/systems/mdesktop/doas.nix
2023-04-02 18:01:14 +01:00

14 lines
213 B
Nix

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