Skip to content

🔑 darkone.security.sudo

sudo hardening (R38–R44). (wip)

Covers the dedicated sudo group (R38), hardened sudo directives (R39), restriction of non-root targets (R40), NOEXEC limitation (R41), forbidding negations (R42), explicit argument specification (R43), and use of sudoedit (R44).

  • enable bool Enable ANSSI sudo hardening (R38–R44).
  • allowedRootRules listOf str sudo rules allowed to target root (R40). Others must target a service account.
darkone.security.sudo = {
enable = false;
allowedRootRules = [ ];
};

Source: modules/security/sudo.nix 🡕