mirror of
https://github.com/youwen5/nixos.git
synced 2024-11-24 17:53:51 -08:00
fix: patch systemd-boot on callisto to avoid catastrophic failure
This commit is contained in:
parent
9a6e8e814b
commit
d19de29379
1 changed files with 11 additions and 1 deletions
|
@ -2,7 +2,6 @@
|
|||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
{
|
||||
config,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
|
@ -14,6 +13,17 @@
|
|||
# ./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.efi.canTouchEfiVariables = false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue