nixpkgs/nixos
ivanbrennan d08967a3a8
nixos/security.sudo: describe extraRules order
The order of sudoers entries is significant. The man page for sudoers(5)
notes:

  Where there are multiple matches, the last match is used (which is not
  necessarily the most specific match).

This module adds a rule for group "wheel" matching all commands. If you
wanted to add a more specific rule allowing members of the "wheel" group
to run command `foo` without a password, you'd need to use mkAfter to
ensure your rule comes after the more general rule.

  extraRules = lib.mkAfter [
    {
      groups = [ "wheel" ];
      commands = [
        {
          command = "${pkgs.foo}/bin/foo";
          options = [ "NOPASSWD" "SETENV" ];
        }
      ]
    }
  ];

Otherwise, when configuration options are merged, if the general rule
ends up after the specific rule, it will dictate the behavior even when
running the `foo` command.
2018-07-01 15:50:51 -04:00
..
doc/manual Merge pull request #38485 from obsidiansystems/nixos-nixpkgs-options 2018-04-19 14:59:58 -04:00
lib Merge pull request #38485 from obsidiansystems/nixos-nixpkgs-options 2018-04-19 14:59:58 -04:00
maintainers Update create-gce.sh script. Set default option for GCE images to disable host key replacement by service. 2018-04-06 10:57:31 +02:00
modules nixos/security.sudo: describe extraRules order 2018-07-01 15:50:51 -04:00
tests Merge pull request #27958 from LumiGuide/strongswan-swanctl 2018-04-21 15:47:39 -05:00
COPYING
default.nix nixos: export packages of the current configuration (its pkgs argument) 2018-02-09 19:35:27 +00:00
README
release-combined.nix nixos/release: fix evaluation if missing x86 2018-03-07 16:06:30 +01:00
release-small.nix Add the boot test to release-small.nix 2018-02-27 20:09:07 +01:00
release.nix Merge pull request #27958 from LumiGuide/strongswan-swanctl 2018-04-21 15:47:39 -05:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
http://nixos.org/nixos and in the manual in doc/manual.