mirror of
https://github.com/elwrcl/copnix.git
synced 2026-11-01 06:38:02 +03:00
update
This commit is contained in:
1 parent
9a950fa1d1
commit
1772a5a0e7
1 file changed
+14
-7
+14
-7
@@ -18,17 +18,19 @@ in
|
|||||||
{
|
{
|
||||||
system.activationScripts.opencoreConfig = {
|
system.activationScripts.opencoreConfig = {
|
||||||
text = ''
|
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 ---"
|
echo "--- Copland Bootloader ---"
|
||||||
|
|
||||||
mkdir -p ${ocPath}/Drivers
|
mkdir -p ${ocPath}/Drivers
|
||||||
mkdir -p ${ocPath}/Resources
|
mkdir -p ${ocPath}/Resources
|
||||||
mkdir -p ${liminePath}
|
mkdir -p ${liminePath}
|
||||||
|
|
||||||
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/
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
cat <<EOF > ${liminePath}/limine.conf
|
cat <<EOF > ${liminePath}/limine.conf
|
||||||
TIMEOUT=5
|
TIMEOUT=5
|
||||||
GRAPHICS=yes
|
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
|
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
|
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"
|
CMDLINE=preempt=full i915.enable_fbc=1 mitigations=off "i915.enable_fbc=1" "usbcore.autosuspend=-1" "transparent_hugepage=always"
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat <<EOF > ${ocPath}/config.plist
|
cat <<EOF > ${ocPath}/config.plist
|
||||||
@@ -64,8 +65,8 @@ in
|
|||||||
<dict>
|
<dict>
|
||||||
<key>PickerMode</key><string>External</string>
|
<key>PickerMode</key><string>External</string>
|
||||||
<key>PickerAttributes</key><integer>17</integer>
|
<key>PickerAttributes</key><integer>17</integer>
|
||||||
<key>Resolution</key><string>1366x768</string>
|
|
||||||
<key>Timeout</key><integer>5</integer>
|
<key>Timeout</key><integer>5</integer>
|
||||||
|
<key>ShowPicker</key><true/>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Entries</key>
|
<key>Entries</key>
|
||||||
<array>
|
<array>
|
||||||
@@ -89,11 +90,17 @@ in
|
|||||||
<dict>
|
<dict>
|
||||||
<key>KeySupport</key><true/>
|
<key>KeySupport</key><true/>
|
||||||
<key>KeySupportMode</key><string>Auto</string>
|
<key>KeySupportMode</key><string>Auto</string>
|
||||||
<key>ReleaseUsbOwnership</key><true/>
|
</dict>
|
||||||
|
<key>Output</key>
|
||||||
|
<dict>
|
||||||
|
<key>ProvideConsoleGop</key><true/>
|
||||||
|
<key>Resolution</key><string>1366x768</string>
|
||||||
|
<key>TextRenderer</key><string>BuiltinGraphics</string>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Quirks</key>
|
<key>Quirks</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>ProvideConsoleGop</key><true/> </dict>
|
<key>ReleaseUsbOwnership</key><true/>
|
||||||
|
</dict>
|
||||||
<key>Drivers</key>
|
<key>Drivers</key>
|
||||||
<array>
|
<array>
|
||||||
<string>OpenRuntime.efi</string>
|
<string>OpenRuntime.efi</string>
|
||||||
@@ -102,7 +109,7 @@ in
|
|||||||
<string>OpenUsbKbDxe.efi</string>
|
<string>OpenUsbKbDxe.efi</string>
|
||||||
</array>
|
</array>
|
||||||
</dict>
|
</dict>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user