mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 22:28:03 +03:00
fix3
This commit is contained in:
1 parent
05e666f369
commit
72a6f61dcc
1 file changed
+7
-4
@@ -19,18 +19,22 @@ let
|
|||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
modules = [
|
modules = [
|
||||||
({ ... }: {
|
({ ... }: {
|
||||||
oceanix = {
|
oceanix.opencore.settings = {
|
||||||
|
|
||||||
UEFI.Output.ProvideConsoleGop = true;
|
UEFI.Output.ProvideConsoleGop = true;
|
||||||
UEFI.Output.Resolution = "1366x768";
|
UEFI.Output.Resolution = "1366x768";
|
||||||
UEFI.Output.TextRenderer = "BuiltinGraphics";
|
UEFI.Output.TextRenderer = "BuiltinGraphics";
|
||||||
|
|
||||||
Misc.Boot.PickerMode = "External";
|
Misc.Boot.PickerMode = "External";
|
||||||
Misc.Boot.PickerVariant = "Acidanthera\\Syrah";
|
Misc.Boot.PickerVariant = "Acidanthera\\Syrah";
|
||||||
Misc.Boot.PickerAttributes = 17;
|
Misc.Boot.PickerAttributes = 17;
|
||||||
Misc.Boot.Timeout = 10;
|
Misc.Boot.Timeout = 10;
|
||||||
|
|
||||||
Misc.Security.SecureBootModel = "Disabled";
|
Misc.Security.SecureBootModel = "Disabled";
|
||||||
Misc.Security.ScanPolicy = 0;
|
Misc.Security.ScanPolicy = 0;
|
||||||
UEFI.Quirks.DisableSecurityPolicy = true;
|
UEFI.Quirks.DisableSecurityPolicy = true;
|
||||||
UEFI.Quirks.ReleaseUsbOwnership = true;
|
UEFI.Quirks.ReleaseUsbOwnership = true;
|
||||||
|
|
||||||
PlatformInfo.Automatic = true;
|
PlatformInfo.Automatic = true;
|
||||||
PlatformInfo.Generic.SystemProductName = "MacBookPro16,1";
|
PlatformInfo.Generic.SystemProductName = "MacBookPro16,1";
|
||||||
PlatformInfo.Generic.SystemSerialNumber = "C02DF0Y0MD6N";
|
PlatformInfo.Generic.SystemSerialNumber = "C02DF0Y0MD6N";
|
||||||
@@ -78,13 +82,12 @@ in
|
|||||||
cp -f ${ocPkg}/X64/EFI/OC/Drivers/*.efi ${ocPath}/Drivers/
|
cp -f ${ocPkg}/X64/EFI/OC/Drivers/*.efi ${ocPath}/Drivers/
|
||||||
cp -rf ${ocResources}/Resources/* ${ocPath}/Resources/
|
cp -rf ${ocResources}/Resources/* ${ocPath}/Resources/
|
||||||
|
|
||||||
|
cp -f ${ocConfig.efiPackage}/EFI/OC/config.plist ${ocPath}/config.plist
|
||||||
|
|
||||||
if [ -f ${pkgs.limine}/share/limine/BOOTX64.EFI ]; then
|
if [ -f ${pkgs.limine}/share/limine/BOOTX64.EFI ]; then
|
||||||
cp -f ${pkgs.limine}/share/limine/BOOTX64.EFI ${liminePath}/BOOTX64.EFI
|
cp -f ${pkgs.limine}/share/limine/BOOTX64.EFI ${liminePath}/BOOTX64.EFI
|
||||||
fi
|
fi
|
||||||
|
|
||||||
OC_PLIST_PATH=$(find ${ocConfig.efiPackage} -name "config.plist" | head -n 1)
|
|
||||||
cp -f "$OC_PLIST_PATH" ${ocPath}/config.plist
|
|
||||||
|
|
||||||
cp -f ${limineConf} ${liminePath}/limine.conf
|
cp -f ${limineConf} ${liminePath}/limine.conf
|
||||||
|
|
||||||
if ! ${pkgs.efibootmgr}/bin/efibootmgr | grep -q "OpenCore_Copland"; then
|
if ! ${pkgs.efibootmgr}/bin/efibootmgr | grep -q "OpenCore_Copland"; then
|
||||||
|
|||||||
Reference in new issue
Block a user