fix: patch systemd-boot on callisto to avoid catastrophic failure

This commit is contained in:
Youwen Wu 2024-11-06 00:58:10 -08:00
parent 9a6e8e814b
commit d19de29379
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -2,7 +2,6 @@
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ {
config,
inputs, inputs,
pkgs, pkgs,
... ...
@ -14,6 +13,17 @@
# ./apple-silicon-support # ./apple-silicon-support
]; ];
systemd.package = pkgs.systemd.overrideAttrs (
finalAttrs: prevAttrs: {
patches = (prevAttrs.patches or [ ]) ++ [
(pkgs.fetchpatch {
url = "https://gist.githubusercontent.com/andre4ik3/41c71a56e6d5657f7e2b4110d6f83430/raw/c7ef5842959a68d352a9018c6630019419b08b9e/0001-Revert-boot-Make-initrd_prepare-semantically-equival.patch";
hash = "sha256-WvO8wopQVBBV4unCRW406injEY7P8JSnoBRxHACyG08=";
})
];
}
);
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = false; boot.loader.efi.canTouchEfiVariables = false;