Commit Graph
7 Commits
Author SHA1 Message Date
Jörg Thalheim f4c4c2c0c9 Merge pull request #1768 from concatime/feature/add-missing-modules-of-rpi5
Add netboot support for Raspberry Pi 5
2026-03-31 05:04:29 +00:00
Jamie Magee b4766ffecf config-txt: fix null removal, file option as types.path
null was not in the settings type, so mkForce null to remove a default
was a type error. Added nullOr to atom and filter nulls in recurse.

Changed file from types.str to types.path with pkgs.writeText — this
is how services.mysql.configFile and similar options work. Moved the
generated file into the option default (with defaultText) rather than
setting it in the config block.
2026-03-09 21:22:51 -07:00
Jamie Magee a688dfcbb5 raspberry-pi: add config.txt generation module
Two new files in raspberry-pi/common/:

config-txt.nix lets you declare config.txt contents through
hardware.raspberry-pi.configtxt.settings (RFC 42 style — plain
values, null to remove, no enable/value wrappers).

config-txt-defaults.nix has the same defaults as Raspberry Pi OS:
vc4-kms-v3d, audio on, arm_boost, CM4 otg_mode, CM5 dwc2, etc.
All mkDefault so they are easy to override.

Not wired into board profiles yet — that comes with the RPi 5
sub-module work. Based on nvmd/nixos-raspberrypi.
2026-03-08 23:18:35 -07:00
Issam E. Maghni 076b2a5116 raspberry-pi: add vc4 to common modules
Raspberry Pi 2 and 3 will now have it too.
2026-02-28 14:01:28 -05:00
Issam E. Maghni 9ad075ca00 raspberry-pi: add usbhid to common modules
Raspberry Pi 2 will now have it too.
2026-02-28 14:01:28 -05:00
Issam E. Maghni 114dfa1989 raspberry-pi: add usb-storage to common modules
Raspberry Pi 2 will now have it too.
2026-02-28 14:01:28 -05:00
Cryolitia PukNgae c8f766fd11 raspberry-pi: move kernel and firmware from nixpkgs
As part of the gradual phasing out of linux_rpi in nixpkgs

Link: https://github.com/NixOS/nixpkgs/pull/477665

Signed-off-by: Cryolitia PukNgae <Cryolitia@gmail.com>
2026-01-18 23:19:14 +08:00