Disable password login

This commit is contained in:
Filippo Berto 2022-01-24 09:28:18 +01:00
parent 7ae2007c95
commit 9a74955258

View file

@ -115,6 +115,7 @@
isNormalUser = true;
extraGroups = [ "audio" "input" "docker" "flashrom" "libvirtd" "network" "usb" "video" "wheel" ];
shell = pkgs.zsh;
openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN+zsSWZFFzQKnATCAvtG+iuSm4qkZHjCtHzGa9B/71W" ];
};
# List packages installed in system profile. To search, run:
@ -134,7 +135,7 @@
# List services that you want to enable:
# Enable the OpenSSH daemon.
services.openssh = { enable = true; openFirewall = true; };
services.openssh = { enable = true; openFirewall = true; permitRootLogin = "no"; passwordAuthentication = false; };
# Cooling management
services.thermald.enable = true;