diff options
author | tv <tv@krebsco.de> | 2023-09-11 18:24:28 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2023-09-13 18:07:11 +0200 |
commit | 0c4f3acb281be6290c55a6e96bc29fab5b5c7a11 (patch) | |
tree | dadaec00477a095273475ac345b2066b4748c399 /configs/initrd | |
parent | ab1d0479e90f11806d4703ec6fffed3d5f782914 (diff) |
stockholm -> hrm
Diffstat (limited to 'configs/initrd')
-rw-r--r-- | configs/initrd/sshd.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/configs/initrd/sshd.nix b/configs/initrd/sshd.nix new file mode 100644 index 0000000..eff8480 --- /dev/null +++ b/configs/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>; + }; +} |