diff --git a/modules/baremetal.nix b/modules/baremetal.nix index b7d21ea3..adb811e7 100644 --- a/modules/baremetal.nix +++ b/modules/baremetal.nix @@ -14,23 +14,29 @@ } ]; - boot.initrd.network = { - enable = true; - ssh = { - # TODO: enable now per machine - # enable = true; - authorizedKeys = config.users.users.root.openssh.authorizedKeys.keys; - hostKeys = [ - initrdEd2219Key - initrdRsaKey - ]; - port = 4748; + boot = { + initrd.network = { + enable = true; + ssh = { + # TODO: enable now per machine + # enable = true; + authorizedKeys = config.users.users.root.openssh.authorizedKeys.keys; + hostKeys = [ + initrdEd2219Key + initrdRsaKey + ]; + port = 4748; + }; + postCommands = '' + cat < /root/.profile + cryptsetup-askpass + EOF + ''; }; - postCommands = '' - cat < /root/.profile - cryptsetup-askpass - EOF - ''; + kernelParams = [ + # "boot.shell_on_fail" + "zfs_force=1" + ]; }; environment.systemPackages = with pkgs; [