nix/modules/uki: use upstream systemdUkify

This commit is contained in:
nikstur 2024-03-10 19:00:42 +01:00
parent 3881267e84
commit e17ed9d6da
1 changed files with 30 additions and 38 deletions

View File

@ -17,15 +17,7 @@ in
};
};
config =
let
systemdUkify = pkgs.systemdMinimal.override {
withEfi = true;
withBootloader = true;
withUkify = true;
};
in
lib.mkIf cfg.enable {
config = lib.mkIf cfg.enable {
boot.bootspec.enable = true;
boot.loader.external = {
enable = true;
@ -41,7 +33,7 @@ in
initrd=$(jq -r '.${bootspecNamespace}.initrd' "$boot_json")
init=$(jq -r '.${bootspecNamespace}.init' "$boot_json")
${systemdUkify}/lib/systemd/ukify \
${pkgs.systemdUkify}/lib/systemd/ukify \
"$kernel" \
"$initrd" \
--stub=${cfg.stub} \