blob: bf1aefeadc6af6ce807a4c3079198e9407bfbba7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{
config,
lib,
...
}: let
cfg = config.collinux.services.networking.sshd;
in
lib.mkIf cfg.enable {
services.openssh = {
enable = true;
hostKeys = [
{
path = "/etc/ssh/ssh_host_ed25519_key";
type = "ed25519";
}
];
settings = {
PermitRootLogin = "prohibit-password";
PasswordAuthentication = false;
};
};
}
|