1
0

configuration/common: split common into seperate files

This commit is contained in:
2023-09-22 21:11:15 +02:00
parent c2b1697fb5
commit 04638f4edf
8 changed files with 149 additions and 108 deletions

View File

@@ -0,0 +1,16 @@
{ lib, ... }:
{
services.openssh.enable = true;
services.openssh.settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
PermitRootLogin = lib.mkDefault "no";
};
services.openssh.hostKeys = lib.mkForce [
# Only create ed25519 host keys
{ type = "ed25519"; path = "/etc/ssh/ssh_host_ed25519_key"; }
];
}