diff --git a/pkgs/pxescript/default.nix b/pkgs/pxescript/default.nix index c39c9d7..4e35bd9 100644 --- a/pkgs/pxescript/default.nix +++ b/pkgs/pxescript/default.nix @@ -10,6 +10,10 @@ in runCommand "netboot" { pxe = '' #!ipxe + ## Variables + set server 172.16.1.6 + set path netboot + ## :custom clear custom_choice menu NixOS netboot installer @@ -25,16 +29,16 @@ runCommand "netboot" { goto custom_exit :option_one - kernel http://172.16.1.6/netboot/${pkgs.stdenv.hostPlatform.linux-kernel.target} - ${builtins.concatStringsSep "\n" (builtins.attrValues (builtins.mapAttrs (name: path: "initrd http://172.16.1.6/netboot/${name}") initrds))} - #initrd http://172.16.1.6/netboot/initrd - #initrd http://172.16.1.6/netboot/manifest - #initrd http://172.16.1.6/netboot/nix-store + kernel http://''${server}/''${path}/${pkgs.stdenv.hostPlatform.linux-kernel.target} + ${builtins.concatStringsSep "\n" (builtins.attrValues (builtins.mapAttrs (name: path: "initrd http://''${server}/''${path}/${name}") initrds))} + #initrd http://''${server}/''${path}/initrd + #initrd http://''${server}/''${path}/manifest + #initrd http://''${server}/''${path}/nix-store imgargs ${pkgs.stdenv.hostPlatform.linux-kernel.target} init=${config.system.build.toplevel}/init ${cmdlineinitrds} ${toString config.boot.kernelParams} boot || goto custom_exit :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 boot || goto custom_exit