summaryrefslogtreecommitdiffstats
path: root/tv/2configs/initrd/sshd.nix
blob: eff848074138057aff76fc8e729a6e2ed92156ac (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" = <secrets/initrd/ssh_host_rsa_key>;
  };
}