From 89697b0fc1580dc165440a6dbe0a719c7931df56 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 18 Dec 2014 11:51:08 +0100 Subject: [PATCH] Improve /etc/sudoers message --- nixos/modules/security/sudo.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/nixos/modules/security/sudo.nix b/nixos/modules/security/sudo.nix index 4c6a1c26426e..d42a8c7f7d29 100644 --- a/nixos/modules/security/sudo.nix +++ b/nixos/modules/security/sudo.nix @@ -64,7 +64,7 @@ in security.sudo.configFile = '' # Don't edit this file. Set the NixOS options ‘security.sudo.configFile’ - # and security.sudo.extraConfig instead. + # or ‘security.sudo.extraConfig’ instead. # Environment variables to keep for root and %wheel. Defaults:root,%wheel env_keep+=TERMINFO_DIRS @@ -90,11 +90,10 @@ in environment.etc = singleton { source = pkgs.runCommand "sudoers" - {src = pkgs.writeText "sudoers-in" cfg.configFile; } + { src = pkgs.writeText "sudoers-in" cfg.configFile; } # Make sure that the sudoers file is syntactically valid. # (currently disabled - NIXOS-66) - "${pkgs.sudo}/sbin/visudo -f $src -c && - cp $src $out"; + "${pkgs.sudo}/sbin/visudo -f $src -c && cp $src $out"; target = "sudoers"; mode = "0440"; };