2022-08-13 20:35:43 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
# For rage encryption, all hosts need a ssh key pair
|
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
2022-10-03 02:55:14 +00:00
|
|
|
# If you don't want the host to have SSH actually opened up to the net,
|
|
|
|
# set `services.openssh.openFirewall` to false in your config.
|
|
|
|
openFirewall = lib.mkDefault true;
|
2022-10-05 09:58:26 +00:00
|
|
|
passwordAuthentication = false;
|
2022-08-13 20:35:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Service that makes Out of Memory Killer more effective
|
|
|
|
services.earlyoom.enable = true;
|
|
|
|
}
|