devos/profiles/ssh/default.nix
2023-03-19 14:38:34 +01:00

12 lines
233 B
Nix

{ ... }: {
services.openssh = {
enable = true;
settings = {
X11Forwarding = true;
PermitRootLogin = "no";
PasswordAuthentication = false;
};
startWhenNeeded = true;
openFirewall = true;
};
}