Unverified Commit b9ea4817 authored by Wolfgang Walther's avatar Wolfgang Walther
Browse files

nixos/systemd-boot: replace substituteAll with replaceVarsWith

parent 83d43b40
Loading
Loading
Loading
Loading
+48 −50
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ let

  edk2ShellEspPath = "efi/edk2-uefi-shell/shell.efi";

  systemdBootBuilder = pkgs.substituteAll rec {
  systemdBootBuilder = pkgs.replaceVarsWith {
    name = "systemd-boot";

    dir = "bin";
@@ -40,6 +40,7 @@ let

    isExecutable = true;

    replacements = rec {
      inherit (builtins) storeDir;

      inherit (pkgs) python3;
@@ -70,10 +71,6 @@ let

      inherit (config.system.nixos) distroName;

    memtest86 = optionalString cfg.memtest86.enable pkgs.memtest86plus;

    netbootxyz = optionalString cfg.netbootxyz.enable pkgs.netbootxyz-efi;

      checkMountpoints = pkgs.writeShellScript "check-mountpoints" ''
        fail() {
          echo "$1 = '$2' is not a mounted partition. Is the path configured correctly?" >&2
@@ -103,6 +100,7 @@ let
        )}
      '';
    };
  };

  finalSystemdBootBuilder = pkgs.writeScript "install-systemd-boot.sh" ''
    #!${pkgs.runtimeShell}