diff options
author | Yureka <yuka@yuka.dev> | 2023-11-10 03:30:39 +0100 |
---|---|---|
committer | Yureka <yuka@yuka.dev> | 2023-11-10 03:30:39 +0100 |
commit | b0206f9bf9c61bad5050ae22702c3ceed9f781d0 (patch) | |
tree | 929b585e5833822e16e0e7ffbdfbea4fd9dba088 /nixos/modules | |
parent | 17ddb57c8eb969879289d064e1248c32dcf01833 (diff) | |
download | nixlib-b0206f9bf9c61bad5050ae22702c3ceed9f781d0.tar nixlib-b0206f9bf9c61bad5050ae22702c3ceed9f781d0.tar.gz nixlib-b0206f9bf9c61bad5050ae22702c3ceed9f781d0.tar.bz2 nixlib-b0206f9bf9c61bad5050ae22702c3ceed9f781d0.tar.lz nixlib-b0206f9bf9c61bad5050ae22702c3ceed9f781d0.tar.xz nixlib-b0206f9bf9c61bad5050ae22702c3ceed9f781d0.tar.zst nixlib-b0206f9bf9c61bad5050ae22702c3ceed9f781d0.zip |
nixos/sudo: enable by default
The default was accidentally changed to false in #262790
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/security/sudo.nix | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/nixos/modules/security/sudo.nix b/nixos/modules/security/sudo.nix index 4e4f186758e9..ff912dec5073 100644 --- a/nixos/modules/security/sudo.nix +++ b/nixos/modules/security/sudo.nix @@ -41,9 +41,15 @@ in ''; }; - enable = mkEnableOption (mdDoc '' - the {command}`sudo` command, which allows non-root users to execute commands as root. - ''); + enable = mkOption { + 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" { }; |