Refactor: Remove unused config argument

This commit is contained in:
elwrcl committed 2026-04-15 16:38:30 +03:00
1 parent 8b67c4bcdf
commit 5d880e4c32
2 files changed
+82 -71

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
{ config, pkgs, ... }: { pkgs, ... }:
{ {
imports = [ imports = [
+81 -70
View File
@@ -1,4 +1,4 @@
{ config, pkgs, lib, inputs, ... }: { pkgs, inputs, ... }:
let let
ocPath = "/boot/EFI/OC"; ocPath = "/boot/EFI/OC";
@@ -17,77 +17,88 @@ let
ocConfig = inputs.oceanix.lib.OpenCoreConfig { ocConfig = inputs.oceanix.lib.OpenCoreConfig {
pkgs = oceanixPkgs; pkgs = oceanixPkgs;
modules = [ modules = [
({ ... }: { (
oceanix.opencore.settings = { { ... }:
UEFI.Output.ProvideConsoleGop = true; {
UEFI.Output.Resolution = "1366x768"; oceanix.opencore.settings = {
UEFI.Output.TextRenderer = "BuiltinGraphics"; UEFI.Output.ProvideConsoleGop = true;
UEFI.Output.Resolution = "1366x768";
UEFI.Output.TextRenderer = "BuiltinGraphics";
UEFI.Audio = { UEFI.Audio = {
AudioCodec = 0; AudioCodec = 0;
AudioDevice = "PciRoot(0x0)/Pci(0x1b,0x0)"; AudioDevice = "PciRoot(0x0)/Pci(0x1b,0x0)";
AudioOutMask = 1; AudioOutMask = 1;
AudioSupport = true; AudioSupport = true;
ResetTrafficClass = true; ResetTrafficClass = true;
DisconnectHda = false; DisconnectHda = false;
MaximumGain = -10; MaximumGain = -10;
MinimumAssistGain = -30; MinimumAssistGain = -30;
MinimumAudibleGain = -128; MinimumAudibleGain = -128;
PlayChime = "Enabled"; PlayChime = "Enabled";
SetupDelay = 0; SetupDelay = 0;
};
UEFI.AppleInput = {
AppleEvent = "Builtin";
CustomDelays = false;
GraphicsInputMirroring = true;
KeyInitialDelay = 50;
KeySubsequentDelay = 5;
PointerPollMask = -1;
PointerPollMin = 10;
PointerPollMax = 80;
PointerSpeedDiv = 1;
PointerSpeedMul = 1;
};
Misc.Boot.PickerMode = "External";
Misc.Boot.PickerVariant = "Acidanthera\\Syrah";
Misc.Boot.PickerAttributes = 144;
Misc.Boot.Timeout = 15;
Misc.Boot.HideAuxiliary = true;
Misc.Debug = {
AppleDebug = true;
ApplePanic = true;
DisableWatchDog = true;
DisplayLevel = 2147483650;
Target = 3;
};
Misc.Security.SecureBootModel = "Disabled";
Misc.Security.ScanPolicy = 0;
Misc.Security.Vault = "Optional";
UEFI.Quirks.DisableSecurityPolicy = true;
UEFI.Quirks.ReleaseUsbOwnership = true;
PlatformInfo.Automatic = true;
PlatformInfo.UpdateSMBIOSMode = "Create";
PlatformInfo.Generic = {
SystemProductName = "MacBookPro9,2";
SystemSerialNumber = "C02J19YCDTY3";
SystemUUID = "8FF32D62-EC2E-46D1-A6D3-D1A5748F5F7B";
MLB = "C02227802QXF1YJ1M";
};
UEFI.Drivers = {
"OpenRuntime.efi" = {
Enabled = true;
};
"OpenCanopy.efi" = {
Enabled = true;
};
"OpenLinuxBoot.efi" = {
Enabled = true;
};
"AudioDxe.efi" = {
Enabled = true;
};
};
Misc.Entries = [ ];
}; };
}
UEFI.AppleInput = { )
AppleEvent = "Builtin";
CustomDelays = false;
GraphicsInputMirroring = true;
KeyInitialDelay = 50;
KeySubsequentDelay = 5;
PointerPollMask = -1;
PointerPollMin = 10;
PointerPollMax = 80;
PointerSpeedDiv = 1;
PointerSpeedMul = 1;
};
Misc.Boot.PickerMode = "External";
Misc.Boot.PickerVariant = "Acidanthera\\Syrah";
Misc.Boot.PickerAttributes = 144;
Misc.Boot.Timeout = 15;
Misc.Boot.HideAuxiliary = true;
Misc.Debug = {
AppleDebug = true;
ApplePanic = true;
DisableWatchDog = true;
DisplayLevel = 2147483650;
Target = 3;
};
Misc.Security.SecureBootModel = "Disabled";
Misc.Security.ScanPolicy = 0;
Misc.Security.Vault = "Optional";
UEFI.Quirks.DisableSecurityPolicy = true;
UEFI.Quirks.ReleaseUsbOwnership = true;
PlatformInfo.Automatic = true;
PlatformInfo.UpdateSMBIOSMode = "Create";
PlatformInfo.Generic = {
SystemProductName = "MacBookPro9,2";
SystemSerialNumber = "C02J19YCDTY3";
SystemUUID = "8FF32D62-EC2E-46D1-A6D3-D1A5748F5F7B";
MLB = "C02227802QXF1YJ1M";
};
UEFI.Drivers = {
"OpenRuntime.efi" = { Enabled = true; };
"OpenCanopy.efi" = { Enabled = true; };
"OpenLinuxBoot.efi" = { Enabled = true; };
"AudioDxe.efi" = { Enabled = true; };
};
Misc.Entries = [ ];
};
})
]; ];
}; };