mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
nixos/sudo-rs: Refactor option definitions
This commit is contained in:
parent
03db94319a
commit
46aaa5be70
1 changed files with 4 additions and 16 deletions
|
@ -41,23 +41,11 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
enable = mkOption {
|
enable = mkEnableOption (mdDoc ''
|
||||||
type = types.bool;
|
the {command}`sudo` command, which allows non-root users to execute commands as root.
|
||||||
default = false;
|
'');
|
||||||
description = mdDoc ''
|
|
||||||
Whether to enable the {command}`sudo` command, which
|
|
||||||
allows non-root users to execute commands as root.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
package = mkOption {
|
package = mkPackageOption pkgs "sudo-rs" { };
|
||||||
type = types.package;
|
|
||||||
default = pkgs.sudo-rs;
|
|
||||||
defaultText = literalExpression "pkgs.sudo-rs";
|
|
||||||
description = mdDoc ''
|
|
||||||
Which package to use for `sudo`.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
wheelNeedsPassword = mkOption {
|
wheelNeedsPassword = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue