mirror of
https://github.com/youwen5/nixos.git
synced 2024-11-24 17:53:51 -08:00
feat: switch from sudo to doas
This commit is contained in:
parent
cbcb9467d6
commit
4e5adbd869
1 changed files with 13 additions and 0 deletions
13
modules/linux/core/default.nix
Normal file
13
modules/linux/core/default.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
security.sudo.enable = false;
|
||||||
|
|
||||||
|
security.doas = {
|
||||||
|
enable = true;
|
||||||
|
extraRules = [
|
||||||
|
{
|
||||||
|
keepEnv = true;
|
||||||
|
persist = true;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue