From ee6a1ba2561b54076c1b88a47f1a1c6b5812832e Mon Sep 17 00:00:00 2001 From: elwrcl Date: Wed, 15 Apr 2026 00:17:32 +0300 Subject: [PATCH] hotfix --- nixos/boot/opencore.nix | 34 ++++++++++++---------------------- 1 file changed, 12 insertions(+), 22 deletions(-) diff --git a/nixos/boot/opencore.nix b/nixos/boot/opencore.nix index 13e6f1b..357fc3e 100644 --- a/nixos/boot/opencore.nix +++ b/nixos/boot/opencore.nix @@ -31,18 +31,6 @@ in cp -f ${pkgs.limine}/share/limine/BOOTX64.EFI ${liminePath}/BOOTX64.EFI fi - cat < ${liminePath}/limine.conf - TIMEOUT=5 - GRAPHICS=yes - INTERFACE_RESOLUTION=1366x768 - - :NixOS (CachyOS) - PROTOCOL=linux - KERNEL_PATH=boot:///EFI/nixos/j2rky4bwgy6s1d5j15pvz4yiprhm96j2-linux-cachyos-latest-lto-x86_64-v2-6.19.11-bzImage.efi - MODULE_PATH=boot:///EFI/nixos/bfy4s8c3lhhdqqpw0ys5gik4vs6hyjlz-initrd-linux-cachyos-latest-lto-x86_64-v2-6.19.11-initrd.efi - CMDLINE=preempt=full i915.enable_fbc=1 mitigations=off "i915.enable_fbc=1" "usbcore.autosuspend=-1" "transparent_hugepage=always" - EOF - cat < ${ocPath}/config.plist @@ -61,12 +49,18 @@ in Misc + Debug + + DisplayDelay0 + DisplayLevel2147483650 + Target3 + Boot - PickerModeExternal - PickerAttributes17 - Timeout5 + PickerModeBuiltin PickerAttributes1 + PollAppleHotKeys ShowPicker + Timeout10 Entries @@ -86,6 +80,7 @@ in UEFI + ConnectDrivers Input KeySupport @@ -94,8 +89,7 @@ in Output ProvideConsoleGop - Resolution1366x768 - TextRendererBuiltinGraphics + ResolutionMax TextRendererBuiltinGraphics Quirks @@ -104,18 +98,14 @@ in Drivers OpenRuntime.efi - OpenCanopy.efi OpenLinuxBoot.efi OpenUsbKbDxe.efi + OpenCanopy.efi EOF - - if ! ${pkgs.efibootmgr}/bin/efibootmgr | grep -q "OpenCore_Copland"; then - ${pkgs.efibootmgr}/bin/efibootmgr -c -d /dev/sda -p 1 -L "OpenCore_Copland" -l "\EFI\OC\OpenCore.efi" - fi ''; }; }