From f85b807cc485152e9449eb5eb3a7b20899ec19d4 Mon Sep 17 00:00:00 2001 From: elwrcl Date: Wed, 15 Apr 2026 00:30:54 +0300 Subject: [PATCH] update --- nixos/boot/opencore.nix | 59 ++++++++++++++++++++++++++++++++--------- 1 file changed, 46 insertions(+), 13 deletions(-) diff --git a/nixos/boot/opencore.nix b/nixos/boot/opencore.nix index 357fc3e..4795226 100644 --- a/nixos/boot/opencore.nix +++ b/nixos/boot/opencore.nix @@ -24,6 +24,7 @@ in mkdir -p ${ocPath}/Resources mkdir -p ${liminePath} + # 1. DOSYALARI KOPYALA cp -f ${ocPkg}/X64/EFI/OC/Drivers/*.efi ${ocPath}/Drivers/ cp -rf ${ocResources}/Resources/* ${ocPath}/Resources/ @@ -31,6 +32,16 @@ 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=efi_chainload + IMAGE_PATH=boot:///EFI/systemd/systemd-bootx64.efi + EOF + cat < ${ocPath}/config.plist @@ -49,19 +60,28 @@ in Misc - Debug - - DisplayDelay0 - DisplayLevel2147483650 - Target3 - Boot - PickerModeBuiltin PickerAttributes1 - PollAppleHotKeys + PickerModeBuiltin + PickerAttributes1 ShowPicker Timeout10 + Security + + AllowSetDefault + AuthRestart + BlacklistAppleUpdate + DmgLoadingSigned + EnablePassword + ExposeSensitiveData6 + HaltLevel2147483648 + PasswordHash + PasswordSalt + ScanPolicy0 + SecureBootModelDisabled + VaultOptional + Entries @@ -70,11 +90,16 @@ in PathPciRoot(0x0)/Pci(0x1f,0x2)/Sata(2,0,0)/HD(1,GPT,73ae5e9a-c31d-4787-9792-ee1843de3e9d,0x800,0x200000)/\EFI\limine\BOOTX64.EFI - Security + + + PlatformInfo + + Generic - AllowSetDefault - ScanPolicy0 - VaultOptional + AdviseFeatures + SystemProductNameMacBookPro16,1 + SystemUUID5445524E-A59B-4D8B-9B2F-9876543210AB + ROMABEiM0RV @@ -89,11 +114,14 @@ in Output ProvideConsoleGop - ResolutionMax TextRendererBuiltinGraphics + ResolutionMax + TextRendererBuiltinGraphics Quirks ReleaseUsbOwnership + RequestBootVarRouting + DisableSecurityPolicy Drivers @@ -106,6 +134,11 @@ in EOF + + # 4. BIOS KAYDI + 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 ''; }; }