nix-config/modules/config/ssh.nix
Patrick ee0e489618
reworked file layout
reworked impermanence
2023-09-02 17:30:09 +02:00

21 lines
451 B
Nix

{
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
PermitRootLogin = "yes";
};
hostKeys = [
{
# never set this to an actual nix type path
# or else .....
# it will end up in the nix store
path = "/etc/ssh/ssh_host_ed25519_key";
type = "ed25519";
}
];
};
}