devos/profiles/ssh/default.nix

14 lines
242 B
Nix
Raw Normal View History

2021-04-06 13:37:40 +02:00
{ ... }: {
services.openssh = {
enable = true;
forwardX11 = true;
permitRootLogin = "no";
startWhenNeeded = true;
2021-07-07 12:55:16 +02:00
openFirewall = true;
passwordAuthentication = false;
2021-04-06 13:37:40 +02:00
};
2021-07-07 20:32:40 +02:00
nix.allowedUsers = [
"nix-ssh"
];
2021-04-06 13:37:40 +02:00
}