Remote disk unlocking: Difference between revisions
imported>Onny (Small enhancement) |
imported>Farcaller (trace: warning: Please set 'boot.initrd.systemd.users.root.shell' instead of 'boot.initrd.network.ssh.shell') |
||
Line 15: | Line 15: | ||
boot.initrd = { | boot.initrd = { | ||
availableKernelModules = [ "r8169" ]; | availableKernelModules = [ "r8169" ]; | ||
systemd.users.root.shell = "/bin/cryptsetup-askpass"; | |||
network = { | network = { | ||
enable = true; | enable = true; | ||
Line 20: | Line 21: | ||
enable = true; | enable = true; | ||
port = 22; | port = 22; | ||
authorizedKeys = [ "ssh-rsa AAAAyourpublic-key-here..." ]; | authorizedKeys = [ "ssh-rsa AAAAyourpublic-key-here..." ]; | ||
hostKeys = [ "/etc/secrets/initrd/ssh_host_rsa_key" ]; | hostKeys = [ "/etc/secrets/initrd/ssh_host_rsa_key" ]; |