fucking hell

This commit is contained in:
Osman Faruk Bayram 2025-10-20 09:49:20 +03:00
parent c9d16bd973
commit e5f9e69675

View file

@ -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" ];