2023-01-12 18:11:50 +01:00
|
|
|
{ ... }: {
|
2021-12-14 18:36:07 +01:00
|
|
|
# Enable the OpenSSH daemon.
|
|
|
|
services.openssh.enable = true;
|
2022-04-29 15:09:13 +02:00
|
|
|
services.openssh.passwordAuthentication = false;
|
2021-12-14 18:36:07 +01:00
|
|
|
|
|
|
|
# Open ports in the firewall.
|
|
|
|
networking.firewall.allowedTCPPorts = [ 22 ];
|
2023-02-24 14:55:31 +01:00
|
|
|
programs.mosh.enable = true;
|
2021-12-14 18:36:07 +01:00
|
|
|
}
|