22 lines
No EOL
416 B
Nix
22 lines
No EOL
416 B
Nix
{ config, namespace, ... }:
|
|
let
|
|
cfg = config.${namespace}.system.security.sudo;
|
|
in
|
|
{
|
|
options.${namespace}.system.security.sudo = {};
|
|
|
|
config = {
|
|
security = {
|
|
sudo = {
|
|
enable = false;
|
|
execWheelOnly = true;
|
|
};
|
|
|
|
sudo-rs = {
|
|
enable = true;
|
|
execWheelOnly = true;
|
|
extraConfig = ''Defaults env_keep += "EDITOR PATH DISPLAY"'';
|
|
};
|
|
};
|
|
};
|
|
} |