anchor.diff:            <filename>sudoers</filename> file.
           '';
       };
  +
  +    security.sudo.extraConfig = mkOption {
  +      type = types.lines;
  +      default = "";
  +      description = ''
  +        Extra configuration text appended to <filename>sudoers</filename>.
  +      '';
  +    };
     };
   
   
  
positive.code: 
      security.sudo.configFile =
        ''
          # Don't edit this file. Set the NixOS option ‘security.sudo.configFile’ instead.
  
          # Environment variables to keep for root and %wheel.
          Defaults:root,%wheel env_keep+=TERMINFO_DIRS
  
negative.code: 
          # Users in the "wheel" group can do anything.
          %wheel      ALL=(ALL) ${if cfg.wheelNeedsPassword then "" else "NOPASSWD: ALL, "}SETENV: ALL
          ${cfg.extraConfig}
        '';
  
      security.setuidPrograms = [ "sudo" "sudoedit" ];
  