2021-12-20 13:37:26 -05:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
|
|
|
networking.firewall = {
|
|
|
|
allowedTCPPorts = [ 22 ];
|
|
|
|
allowedUDPPorts = [ 22 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
extraConfig = ''
|
|
|
|
StreamLocalBindUnlink yes
|
|
|
|
'';
|
|
|
|
listenAddresses = [
|
|
|
|
{
|
|
|
|
addr = "0.0.0.0";
|
|
|
|
port = 22;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
permitRootLogin = "no";
|
|
|
|
passwordAuthentication = false;
|
|
|
|
};
|
2022-05-13 20:15:25 -04:00
|
|
|
|
|
|
|
# Enable mosh for connecting to phone
|
|
|
|
programs.mosh.enable = true;
|
2021-12-20 13:37:26 -05:00
|
|
|
}
|