nixos
This commit is contained in:
@@ -20,6 +20,7 @@ let
|
||||
item debian-standard Boot Debian Live ${pkgs.mrescue-debian-standard.version} (Standard)
|
||||
item debian-xfce Boot Debian Live ${pkgs.mrescue-debian-xfce.version} (XFCE)
|
||||
item debian-kde Boot Debian Live ${pkgs.mrescue-debian-kde.version} (KDE)
|
||||
item nixos Boot NixOS ${pkgs.mrescue-nixos.version}
|
||||
item netbootxyz Boot netboot.xyz
|
||||
item shell iPXE Shell
|
||||
choose --default alpine --timeout 10000 selected || goto menu
|
||||
@@ -45,6 +46,11 @@ let
|
||||
initrd http://10.14.143.1/boot/debian-kde/initrd
|
||||
boot
|
||||
|
||||
:nixos
|
||||
kernel http://10.14.143.1/boot/nixos/kernel init=/nix/store/*/init loglevel=4
|
||||
initrd http://10.14.143.1/boot/nixos/initrd
|
||||
boot
|
||||
|
||||
:netbootxyz
|
||||
isset ''${platform} && iseq ''${platform} pcbios && chain --autofree https://boot.netboot.xyz/ipxe/netboot.xyz.kpxe ||
|
||||
chain --autofree https://boot.netboot.xyz/ipxe/netboot.xyz.efi
|
||||
@@ -69,6 +75,7 @@ let
|
||||
mkdir -p $out/debian-standard
|
||||
mkdir -p $out/debian-xfce
|
||||
mkdir -p $out/debian-kde
|
||||
mkdir -p $out/nixos
|
||||
|
||||
cp ${customIpxeEfi}/ipxe.efi $out/boot.efi
|
||||
cp ${customIpxeBios}/undionly.kpxe $out/boot.kpxe
|
||||
@@ -91,6 +98,10 @@ let
|
||||
cp ${pkgs.mrescue-debian-kde}/kernel $out/debian-kde/kernel
|
||||
cp ${pkgs.mrescue-debian-kde}/initrd $out/debian-kde/initrd
|
||||
cp ${pkgs.mrescue-debian-kde}/filesystem.squashfs $out/debian-kde/filesystem.squashfs
|
||||
|
||||
# NixOS
|
||||
cp ${pkgs.mrescue-nixos}/kernel $out/nixos/kernel
|
||||
cp ${pkgs.mrescue-nixos}/initrd $out/nixos/initrd
|
||||
'';
|
||||
in
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user