add resque
This commit is contained in:
parent
ca7450f55c
commit
711aab0bf9
2 changed files with 32 additions and 4 deletions
26
hosts/lambdaos/rescue.nix
Normal file
26
hosts/lambdaos/rescue.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
netboot = import (pkgs.path + "/nixos/lib/eval-config.nix") {
|
||||
modules = [
|
||||
(pkgs.path + "/nixos/modules/installer/netboot/netboot-minimal.nix")
|
||||
module
|
||||
];
|
||||
};
|
||||
module = {
|
||||
# you will want to add options here to support your filesystem
|
||||
# and also maybe ssh to let you in
|
||||
boot.supportedFilesystems = [ "zfs" ];
|
||||
};
|
||||
in
|
||||
{
|
||||
boot.loader.grub.extraEntries = ''
|
||||
menuentry "Nixos Installer" {
|
||||
linux ($drive1)/rescue-kernel init=${netboot.config.system.build.toplevel}/init ${toString netboot.config.boot.kernelParams}
|
||||
initrd ($drive1)/rescue-initrd
|
||||
}
|
||||
'';
|
||||
boot.loader.grub.extraFiles = {
|
||||
"rescue-kernel" = "${netboot.config.system.build.kernel}/bzImage";
|
||||
"rescue-initrd" = "${netboot.config.system.build.netbootRamdisk}/initrd";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue