mio-ops/profiles/openssh.nix

20 lines
405 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 = {
2021-11-16 04:57:23 +00:00
enable = true; # Enable the OpenSSH daemon.
2020-09-17 01:15:10 +00:00
permitRootLogin = "prohibit-password";
2019-12-10 14:44:55 +00:00
challengeResponseAuthentication = false;
passwordAuthentication = false;
openFirewall = true;
2021-11-16 04:57:23 +00:00
hostKeys = [{
path = "/etc/ssh/ssh_host_ed25519_key";
type = "ed25519";
}];
2019-12-10 14:44:55 +00:00
};
}