move bootpart-systemd-boot installation into modules/image, so it reliably applies to hosts which need it

This commit is contained in:
2025-09-01 20:20:43 +00:00
parent 1c38797bad
commit a1396fb273
3 changed files with 3 additions and 5 deletions

View File

@@ -11,7 +11,6 @@ in
# rpi bootrom -> edk2 -> systemd-boot
# edk2 exists here to provide the base UEFI environment which systemd-boot expects
pkgs.bootpart-edk2-rpi
pkgs.bootpart-systemd-boot
];
#v used by systemd-boot
hardware.deviceTree.name = "broadcom/bcm2711-rpi-400.dtb";

View File

@@ -37,7 +37,5 @@ in
options kvm_amd nested=1
options kvm_intel nested=1
'';
sane.image.extraBootFiles = [ pkgs.bootpart-systemd-boot ];
};
}

View File

@@ -395,7 +395,8 @@ in
'')
]
++
lib.optionals config.boot.loader.systemd-boot.enable [
lib.optionals config.boot.loader.systemd-boot.enable ([
pkgs.bootpart-systemd-boot
# it'd be cool to use `config.system.build.installBootLoader` to install both the bootloader config AND the bootloader itself,
# but the combination of custom nixpkgs logic + systemd's sanity checking makes it near impossible to use
# outside a live system.
@@ -443,7 +444,7 @@ in
console-mode keep
EOF
'')
]
])
;
};
}