mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Hardening] prohibit root ssh login entirely in hardcore mode
This commit is contained in:
parent
3080d90d2c
commit
06398f02a6
1 changed files with 4 additions and 1 deletions
|
|
@ -43,7 +43,10 @@ in
|
||||||
|
|
||||||
security.sudo.execWheelOnly = true;
|
security.sudo.execWheelOnly = true;
|
||||||
|
|
||||||
services.openssh.settings.PermitRootLogin = "prohibit-password";
|
services.openssh.settings.PermitRootLogin =
|
||||||
|
if cfg.hardcore then
|
||||||
|
"no"
|
||||||
|
else "prohibit-password";
|
||||||
|
|
||||||
security.apparmor.enable = true;
|
security.apparmor.enable = true;
|
||||||
services.dbus.apparmor = "enabled";
|
services.dbus.apparmor = "enabled";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue