summaryrefslogtreecommitdiffstats
path: root/tv/2configs/initrd/sshd.nix
blob: d7264f073d1eb488680fba2b501856f110f6d1fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ config, ... }: {
  boot.initrd.availableKernelModules = [
    "e1000e"
  ];
  boot.initrd.network.enable = true;
  boot.initrd.network.ssh = {
    enable = true;
    port = 11423;
    authorizedKeys = [
      config.krebs.users.tv.pubkey
    ];
    ignoreEmptyHostKeys = true;
  };
  boot.initrd.secrets = {
    "/etc/ssh/ssh_host_rsa_key" = "${config.krebs.secret.directory}/initrd/ssh_host_rsa_key";
  };
}