populate firmware partition via systemd service

Only copy files from modified packages.
This commit is contained in:
Travis Staton 2023-05-24 09:33:32 -04:00
parent 3ca8c6898a
commit a1b4cadb53
2 changed files with 93 additions and 39 deletions

View file

@ -87,8 +87,8 @@ the aarch64 installation media from nixpkgs: There is a firmware
partition that contains necessary firmware, u-boot, and
config.txt. Then there is another partition (labeled `NIXOS_SD`) that
contains everything else. The firmware and `config.txt` file are
managed by NixOS modules defined in this package. Additionally, NixOS
system activation will update the firmware and `config.txt` in the
managed by NixOS modules defined in this package. Additionally, a
systemd service will update the firmware and `config.txt` in the
firmware partition __in place__. Linux kernels are stored in the
`NIXOS_SD` partition and will be booted by u-boot in the firmware
partition.
@ -96,7 +96,8 @@ partition.
## `config.txt` generation
As noted, the `config.txt` file is generated by the NixOS
configuration and automatically updated on system activation.
configuration and automatically updated on when the nix configuration
is modified.
The relevant nixos option is
`hardware.raspberry-pi.config`. Configuration is partitioned into
@ -254,8 +255,8 @@ device tree configuration is controlled via the [config.txt
file](https://www.raspberrypi.com/documentation/computers/config_txt.html).
Additionally, the firmware, device trees, and overlays from the
`raspberrypifw` package populate the firmware partition on system
activation. This package is kept up to date by the overlay applied by
this package, so you don't need configure this. However, if you want
to use different firmware you can override that package to do so.
`raspberrypifw` package populate the firmware partition. This package
is kept up to date by the overlay applied by this package, so you
don't need configure this. However, if you want to use different
firmware you can override that package to do so.