mio-ops/roles/openssh.nix

22 lines
431 B
Nix
Raw Normal View History

2019-12-10 14:44:55 +00:00
# SSH service configuration common to all hosts
{ config, pkgs, lib, ... }:
{
services.openssh = {
enable = true; # Enable the OpenSSH daemon.
permitRootLogin = "without-password";
challengeResponseAuthentication = false;
passwordAuthentication = false;
openFirewall = true;
hostKeys = [
{
path = "/etc/ssh/ssh_host_ed25519_key";
type = "ed25519";
}
];
};
}