Skip to content

Commit 6660496

Browse files
committed
use replaceVars instead
1 parent 3b8ae85 commit 6660496

File tree

1 file changed

+4
-2
lines changed
  • modules/overlay/system/boot/loader

1 file changed

+4
-2
lines changed

modules/overlay/system/boot/loader/grub.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -824,11 +824,13 @@ in
824824

825825
system.build.installBootLoader =
826826
let
827-
install-grub-pl = pkgs.substituteAll {
828-
src = ./install-grub.pl;
827+
install-grub-pl = pkgs.replaceVars ./install-grub.pl {
829828
utillinux = pkgs.util-linux;
830829
btrfsprogs = cfg.btrfsPackage;
831830
inherit (config.system.nixos) distroName;
831+
# targets of a replacement in code
832+
bootPath = null;
833+
bootRoot = null;
832834
};
833835
perl = pkgs.perl.withPackages (
834836
p: with p; [

0 commit comments

Comments
 (0)