diff options
author | tv <tv@krebsco.de> | 2023-09-05 11:30:39 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2023-09-05 11:30:39 +0200 |
commit | f9adf3af97b7f4be5dcd314fa45138fc59cc1b7f (patch) | |
tree | 7d0a0291888a843191ba1cbf75ab900a0af43d3b /tv | |
parent | 65829c6fb6c72a03194d444f52a2063b20459973 (diff) |
tv initrd/sshd: init
Diffstat (limited to 'tv')
-rw-r--r-- | tv/2configs/initrd/sshd.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tv/2configs/initrd/sshd.nix b/tv/2configs/initrd/sshd.nix new file mode 100644 index 000000000..eff848074 --- /dev/null +++ b/tv/2configs/initrd/sshd.nix @@ -0,0 +1,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>; + }; +} |