2024-09-24 12:33:51 +02: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;
|
2024-09-24 12:33:51 +02: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)
|
2024-09-24 12:33:51 +02: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
|
|
|
}
|