devos/profiles/ssh/default.nix
2022-05-10 21:16:20 +02:00

13 lines
242 B
Nix

{ ... }: {
services.openssh = {
enable = true;
forwardX11 = true;
permitRootLogin = "no";
startWhenNeeded = true;
openFirewall = true;
passwordAuthentication = false;
};
nix.allowedUsers = [
"nix-ssh"
];
}