nix-conf/modules/ssh/default.nix
2023-05-19 20:53:02 +02:00

22 lines
387 B
Nix

{ pkgs, ... }:
{
services = {
openssh = {
enable = true;
ports = [ 22 ];
openFirewall = true;
allowSFTP = true;
settings = {
X11forwarding = true;
PermitRootLogin = "no";
passwordAuthentication = true;
kbdInteractiveAuthentication = true;
};
};
};
environment.systemPackages = with pkgs; [ sshfs ];
}