Add ssh key

This commit is contained in:
jopejoe1 2023-04-05 09:19:06 +02:00
parent 4ca736ec91
commit d45156b4ee
2 changed files with 10 additions and 5 deletions

View file

@ -10,10 +10,13 @@ in
};
config = mkIf cfg.enable {
services.openssh.enable = true;
services.openssh.settings.X11forwarding = true;
services.openssh.settings.PermitRootLogin = "yes";
services.openssh = {
enable = true;
passwordAuthentication = false;
kbdInteractiveAuthentication = false;
settings.X11forwarding = true;
settings.PermitRootLogin = "yes";
}
environment.systemPackages = with pkgs; [ sshfs ];
};
}