nix/modules/uki: use upstream systemdUkify
This commit is contained in:
parent
3881267e84
commit
e17ed9d6da
|
@ -17,15 +17,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config =
|
config = lib.mkIf cfg.enable {
|
||||||
let
|
|
||||||
systemdUkify = pkgs.systemdMinimal.override {
|
|
||||||
withEfi = true;
|
|
||||||
withBootloader = true;
|
|
||||||
withUkify = true;
|
|
||||||
};
|
|
||||||
in
|
|
||||||
lib.mkIf cfg.enable {
|
|
||||||
boot.bootspec.enable = true;
|
boot.bootspec.enable = true;
|
||||||
boot.loader.external = {
|
boot.loader.external = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -41,7 +33,7 @@ in
|
||||||
initrd=$(jq -r '.${bootspecNamespace}.initrd' "$boot_json")
|
initrd=$(jq -r '.${bootspecNamespace}.initrd' "$boot_json")
|
||||||
init=$(jq -r '.${bootspecNamespace}.init' "$boot_json")
|
init=$(jq -r '.${bootspecNamespace}.init' "$boot_json")
|
||||||
|
|
||||||
${systemdUkify}/lib/systemd/ukify \
|
${pkgs.systemdUkify}/lib/systemd/ukify \
|
||||||
"$kernel" \
|
"$kernel" \
|
||||||
"$initrd" \
|
"$initrd" \
|
||||||
--stub=${cfg.stub} \
|
--stub=${cfg.stub} \
|
||||||
|
|
Loading…
Reference in New Issue