also refactor nixos modules
This commit is contained in:
parent
2471562583
commit
b37c5c0cbd
44 changed files with 10 additions and 2 deletions
20
modules/nixos/system/security/sudo.nix
Normal file
20
modules/nixos/system/security/sudo.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{config, ...}: let
|
||||
cfg = config.sneeuwvlok.system.security.sudo;
|
||||
in {
|
||||
options.sneeuwvlok.system.security.sudo = {};
|
||||
|
||||
config = {
|
||||
security = {
|
||||
sudo = {
|
||||
enable = false;
|
||||
execWheelOnly = true;
|
||||
};
|
||||
|
||||
sudo-rs = {
|
||||
enable = true;
|
||||
execWheelOnly = true;
|
||||
extraConfig = ''Defaults env_keep += "EDITOR PATH DISPLAY"'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue