Merge pull request #266571 from yu-re-ka/nixos-sudo
nixos/sudo: enable by default
This commit is contained in:
commit
9c7eef66db
2 changed files with 11 additions and 4 deletions
|
@ -41,9 +41,15 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
enable = mkEnableOption (mdDoc ''
|
enable = mkOption {
|
||||||
the {command}`sudo` command, which allows non-root users to execute commands as root.
|
type = types.bool;
|
||||||
'');
|
default = true;
|
||||||
|
description =
|
||||||
|
lib.mdDoc ''
|
||||||
|
Whether to enable the {command}`sudo` command, which
|
||||||
|
allows non-root users to execute commands as root.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
package = mkPackageOption pkgs "sudo" { };
|
package = mkPackageOption pkgs "sudo" { };
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,8 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
security.sudo = {
|
security.sudo = {
|
||||||
enable = true;
|
# Explicitly _not_ defining 'enable = true;' here, to check that sudo is enabled by default
|
||||||
|
|
||||||
wheelNeedsPassword = false;
|
wheelNeedsPassword = false;
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
|
Loading…
Reference in a new issue