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 | a960ac592634f032a73702ecc774f65ec21e5af6 (patch) | |
tree | 7fa3162687fde135a0bf869f2d94a566d006713d /tv/2configs | |
parent | f45970c0c644fce961c5a4f8f0a09c46fc3f6df2 (diff) |
tv initrd/sshd: init
Diffstat (limited to 'tv/2configs')
-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 0000000..eff8480 --- /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>; + }; +} |