This commit is contained in:
jopejoe1 2023-05-19 20:53:02 +02:00
parent e8c8e6e10e
commit b288f544e5
12 changed files with 221 additions and 177 deletions

22
modules/ssh/default.nix Normal file
View file

@ -0,0 +1,22 @@
{ 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 ];
}