fucking hell
This commit is contained in:
parent
c9d16bd973
commit
e5f9e69675
1 changed files with 2 additions and 2 deletions
|
|
@ -37,10 +37,10 @@ in
|
||||||
(lib.mkIf (cfg.enable && cfg.initrd-ssh.enable) {
|
(lib.mkIf (cfg.enable && cfg.initrd-ssh.enable) {
|
||||||
boot.initrd.network.enable = true;
|
boot.initrd.network.enable = true;
|
||||||
boot.initrd.availableKernelModules = cfg.initrd-ssh.ethernetDrivers;
|
boot.initrd.availableKernelModules = cfg.initrd-ssh.ethernetDrivers;
|
||||||
boot.kernelParams = [ "ip=::::${hostName}-initrd::dhcp" ];
|
boot.kernelParams = [ "ip=152.53.152.129::152.53.152.1:255.255.252.0::eth0:none" ];
|
||||||
boot.initrd.network.ssh = {
|
boot.initrd.network.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
port = 22;
|
port = 2222; # different port to avoid conflicts
|
||||||
shell = "/bin/cryptsetup-askpass";
|
shell = "/bin/cryptsetup-askpass";
|
||||||
authorizedKeys = authorizedKeys;
|
authorizedKeys = authorizedKeys;
|
||||||
hostKeys = [ "/etc/ssh/initrd" ];
|
hostKeys = [ "/etc/ssh/initrd" ];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue