mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Hardening] Deactivate password login for root when hardening is enabled
This commit is contained in:
parent
4915bff563
commit
3d55cc1894
2 changed files with 4 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ in {
|
|||
# Enable the OpenSSH daemon.
|
||||
services.openssh.enable = true;
|
||||
# services.openssh.permitRootLogin = "prohibit-password";
|
||||
services.openssh.permitRootLogin = "yes";
|
||||
services.openssh.permitRootLogin = mkDefault "yes";
|
||||
networking.firewall.allowedTCPPorts = [ 22 ];
|
||||
networking.firewall.allowedUDPPorts = [ 22 ];
|
||||
|
||||
|
|
@ -113,6 +113,7 @@ in {
|
|||
] (x: builtins.toJSON x));
|
||||
|
||||
|
||||
# Enusre low-latency response for this time-critical service
|
||||
systemd.services."hdapsd@" = {
|
||||
serviceConfig = {
|
||||
Nice = -20;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue