This repository has been archived on 2024-06-17. You can view files and clone it, but cannot push or open issues or pull requests.
nixConfig/services.nix

21 lines
491 B
Nix

{
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;
ports = [ 22 ];
settings = {
PasswordAuthentication = true;
AllowUsers = [ "freenen" ];
UseDns = true;
X11Forwarding = false;
PermitRootLogin = "no";
};
};
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ 22 ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
}