mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Hardening] Forbid sudo usage by non-wheel users
This commit is contained in:
parent
bab9dfb6c8
commit
c4dda59100
1 changed files with 2 additions and 0 deletions
|
|
@ -47,6 +47,8 @@ in
|
|||
|
||||
aviallon.hardening.expensive = mkIf cfg.hardcore (mkForce true);
|
||||
|
||||
security.sudo.execWheelOnly = true;
|
||||
|
||||
services.openssh.permitRootLogin = "prohibit-password";
|
||||
|
||||
security.apparmor.enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue