add variables
This commit is contained in:
parent
2d5e73c9a8
commit
d50385f200
@ -10,6 +10,10 @@ in
|
|||||||
runCommand "netboot" {
|
runCommand "netboot" {
|
||||||
pxe = ''
|
pxe = ''
|
||||||
#!ipxe
|
#!ipxe
|
||||||
|
## Variables
|
||||||
|
set server 172.16.1.6
|
||||||
|
set path netboot
|
||||||
|
##
|
||||||
:custom
|
:custom
|
||||||
clear custom_choice
|
clear custom_choice
|
||||||
menu NixOS netboot installer
|
menu NixOS netboot installer
|
||||||
@ -25,16 +29,16 @@ runCommand "netboot" {
|
|||||||
goto custom_exit
|
goto custom_exit
|
||||||
|
|
||||||
:option_one
|
:option_one
|
||||||
kernel http://172.16.1.6/netboot/${pkgs.stdenv.hostPlatform.linux-kernel.target}
|
kernel http://''${server}/''${path}/${pkgs.stdenv.hostPlatform.linux-kernel.target}
|
||||||
${builtins.concatStringsSep "\n" (builtins.attrValues (builtins.mapAttrs (name: path: "initrd http://172.16.1.6/netboot/${name}") initrds))}
|
${builtins.concatStringsSep "\n" (builtins.attrValues (builtins.mapAttrs (name: path: "initrd http://''${server}/''${path}/${name}") initrds))}
|
||||||
#initrd http://172.16.1.6/netboot/initrd
|
#initrd http://''${server}/''${path}/initrd
|
||||||
#initrd http://172.16.1.6/netboot/manifest
|
#initrd http://''${server}/''${path}/manifest
|
||||||
#initrd http://172.16.1.6/netboot/nix-store
|
#initrd http://''${server}/''${path}/nix-store
|
||||||
imgargs ${pkgs.stdenv.hostPlatform.linux-kernel.target} init=${config.system.build.toplevel}/init ${cmdlineinitrds} ${toString config.boot.kernelParams}
|
imgargs ${pkgs.stdenv.hostPlatform.linux-kernel.target} init=${config.system.build.toplevel}/init ${cmdlineinitrds} ${toString config.boot.kernelParams}
|
||||||
boot || goto custom_exit
|
boot || goto custom_exit
|
||||||
|
|
||||||
:option_two
|
:option_two
|
||||||
kernel {{ memdisk_location }} raw iso
|
kernel http://''${server}/netboot/memdisk raw iso
|
||||||
initrd https://mirror.mauer.tech/archlinux/iso/latest/archlinux-x86_64.iso
|
initrd https://mirror.mauer.tech/archlinux/iso/latest/archlinux-x86_64.iso
|
||||||
boot || goto custom_exit
|
boot || goto custom_exit
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user