From 1772a5a0e7cdf049910c5c13e5edf35a21e080ac Mon Sep 17 00:00:00 2001 From: elwrcl Date: Wed, 15 Apr 2026 00:11:23 +0300 Subject: [PATCH] update --- nixos/boot/opencore.nix | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/nixos/boot/opencore.nix b/nixos/boot/opencore.nix index 2668808..13e6f1b 100644 --- a/nixos/boot/opencore.nix +++ b/nixos/boot/opencore.nix @@ -18,17 +18,19 @@ in { system.activationScripts.opencoreConfig = { text = '' - CUR_KERNEL=$(ls /boot/EFI/nixos/*-bzImage.efi | head -n 1 | xargs basename) - CUR_INITRD=$(ls /boot/EFI/nixos/*-initrd.efi | head -n 1 | xargs basename) echo "--- Copland Bootloader ---" + mkdir -p ${ocPath}/Drivers mkdir -p ${ocPath}/Resources mkdir -p ${liminePath} + cp -f ${ocPkg}/X64/EFI/OC/Drivers/*.efi ${ocPath}/Drivers/ cp -rf ${ocResources}/Resources/* ${ocPath}/Resources/ + if [ -f ${pkgs.limine}/share/limine/BOOTX64.EFI ]; then cp -f ${pkgs.limine}/share/limine/BOOTX64.EFI ${liminePath}/BOOTX64.EFI fi + cat < ${liminePath}/limine.conf TIMEOUT=5 GRAPHICS=yes @@ -39,7 +41,6 @@ in 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 @@ -64,8 +65,8 @@ in PickerModeExternal PickerAttributes17 - Resolution1366x768 Timeout5 + ShowPicker Entries @@ -89,11 +90,17 @@ in KeySupport KeySupportModeAuto - ReleaseUsbOwnership + + Output + + ProvideConsoleGop + Resolution1366x768 + TextRendererBuiltinGraphics Quirks - ProvideConsoleGop + ReleaseUsbOwnership + Drivers OpenRuntime.efi @@ -102,7 +109,7 @@ in OpenUsbKbDxe.efi - + EOF