nix/modules/uki: use upstream systemdUkify
This commit is contained in:
parent
3881267e84
commit
e17ed9d6da
|
@ -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} \
|
||||
|
|
Loading…
Reference in New Issue