2023-01-12 18:11:50 +01:00
|
|
|
{ ... }: {
|
2021-12-14 18:36:07 +01:00
|
|
|
# Enable the OpenSSH daemon.
|
|
|
|
services.openssh.enable = true;
|
2023-12-04 17:42:06 +01:00
|
|
|
services.openssh.settings.PasswordAuthentication = false;
|
2023-12-20 19:53:39 +01:00
|
|
|
services.openssh.ports = [ 22 2222 ];
|
2021-12-14 18:36:07 +01:00
|
|
|
|
2023-12-04 17:42:06 +01:00
|
|
|
# Open ports in the firewall. (In fact not needed)
|
2023-12-20 19:53:39 +01:00
|
|
|
networking.firewall.allowedTCPPorts = [ 22 2222 ];
|
2023-12-04 17:42:06 +01:00
|
|
|
|
|
|
|
# Mosh <3
|
2023-02-24 14:55:31 +01:00
|
|
|
programs.mosh.enable = true;
|
2021-12-14 18:36:07 +01:00
|
|
|
}
|