blob: 30d16a6aa30e909a8620a56c4d89cc50e82fb3c2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{
config,
lib,
...
}: let
cfg = config.vhack.openssh;
in {
options.vhack.openssh = {
enable = lib.mkEnableOption ''
a sane openssh implementation.
'';
};
config = lib.mkIf cfg.enable {
services.openssh = {
enable = true;
settings.PasswordAuthentication = false;
hostKeys = [
{
# See the explanation for this in /system/impermanence/mods/openssh.nix
# path = "/var/lib/sshd/ssh_host_ed25519_key";
# FIXME: Remove this workaround
path = "/srv/var/lib/sshd/ssh_host_ed25519_key";
rounds = 1000;
type = "ed25519";
}
];
};
};
}
|