2024-07-26 22:12:48 +02:00
|
|
|
{ lib, ... }:
|
|
|
|
{
|
2023-05-18 06:57:58 +02:00
|
|
|
# Enable the OpenSSH daemon.
|
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
PasswordAuthentication = false;
|
|
|
|
KbdInteractiveAuthentication = false;
|
|
|
|
PermitRootLogin = "yes";
|
|
|
|
};
|
2023-12-18 16:49:17 +01:00
|
|
|
startWhenNeeded = lib.mkForce false;
|
2023-05-18 06:57:58 +02:00
|
|
|
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";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|