summary refs log tree commit diff stats
path: root/system/services/openssh/default.nix
blob: 46a978270a9eff3f2eb5fe74c4dfa0c5bf2045bf (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
{pkgsUnstable, ...}: {
  imports = [
    ./new_module.nix
  ];

  services.openssh = {
    enable = true;
    settings.PasswordAuthentication = false;

    package = pkgsUnstable.openssh;

    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";
      }
    ];
  };
}