From b0206f9bf9c61bad5050ae22702c3ceed9f781d0 Mon Sep 17 00:00:00 2001 From: Yureka Date: Fri, 10 Nov 2023 03:30:39 +0100 Subject: nixos/sudo: enable by default The default was accidentally changed to false in #262790 --- nixos/modules/security/sudo.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/nixos/modules/security/sudo.nix b/nixos/modules/security/sudo.nix index 4e4f186758e..ff912dec507 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" { }; -- cgit 1.4.1