NixOS on ARM/Raspberry Pi 4: Difference between revisions
Add closing code tag |
|||
| Line 79: | Line 79: | ||
</nowiki>}} | </nowiki>}} | ||
=== <code>config.txt === | === <code>config.txt</code> === | ||
{{warning|Since 24.11, the option <code>boot.loader.raspberrypi</code> which included <code>firmwareConfig</code> is removed from <code>nixpkgs</code>, therefore changes have to be written to <code>config.txt</code> directly<ref>https://github.com/NixOS/nixpkgs/pull/241534</ref>}} | {{warning|Since 24.11, the option <code>boot.loader.raspberrypi</code> which included <code>firmwareConfig</code> is removed from <code>nixpkgs</code>, therefore changes have to be written to <code>config.txt</code> directly<ref>https://github.com/NixOS/nixpkgs/pull/241534</ref>}} | ||
To edit options only available through <code>config.txt</code>, as of May 12, 2025, you can only do so non-declaratively: | To edit options only available through <code>config.txt</code>, as of May 12, 2025, you can only do so non-declaratively: | ||
| Line 86: | Line 86: | ||
$ sudo mount /dev/disk/by-label/FIRMWARE /mnt | $ sudo mount /dev/disk/by-label/FIRMWARE /mnt | ||
$ sudo vim /mnt/config.txt # <-- make changes here | $ sudo vim /mnt/config.txt # <-- make changes here | ||
</nowiki> | </nowiki>}} | ||
}} | |||
For example, | For example, [https://www.raspberrypi-spy.co.uk/2020/11/overclocking-the-raspberry-pi-400/ overclocking] the Raspberry Pi 400 can be done by adding the following: | ||
{{file|config.txt|text|<nowiki> | {{file|config.txt|text|<nowiki> | ||
| Line 95: | Line 94: | ||
over_voltage=6 | over_voltage=6 | ||
</nowiki>}} | </nowiki>}} | ||
=== USB boot === | === USB boot === | ||