This repository was archived by the owner on Mar 23, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 5353 core = import ./overlays ( builtins . removeAttrs srcs [ "self" ] ) ;
5454 libcamera = import ./overlays/libcamera.nix ( builtins . removeAttrs srcs [ "self" ] ) ;
5555 } ;
56- nixosModules . raspberry-pi = import ./rpi {
57- inherit pinned ;
58- core-overlay = self . overlays . core ;
59- libcamera-overlay = self . overlays . libcamera ;
56+ nixosModules = {
57+ raspberry-pi = import ./rpi {
58+ inherit pinned ;
59+ core-overlay = self . overlays . core ;
60+ libcamera-overlay = self . overlays . libcamera ;
61+ } ;
62+ sd-image = import ./sd-image ;
6063 } ;
6164 nixosConfigurations = {
6265 rpi-example = srcs . nixpkgs . lib . nixosSystem {
6366 system = "aarch64-linux" ;
64- modules = [ self . nixosModules . raspberry-pi ./example ] ;
67+ modules = [ self . nixosModules . raspberry-pi self . nixosModules . sd-image ./example ] ;
6568 } ;
6669 } ;
6770 checks . aarch64-linux = self . packages . aarch64-linux ;
Original file line number Diff line number Diff line change 88 kernel = pkgs . rpi-kernels . "${ version } " . "${ board } " ;
99in
1010{
11- imports = [ ../sd-image . /config.nix ./i2c.nix ] ;
11+ imports = [ ./config.nix ./i2c.nix ] ;
1212
1313 options = with lib ; {
1414 raspberry-pi-nix = {
9393 {
9494 Type = "oneshot" ;
9595 MountImages =
96- "/dev/disk/by-label/${ config . sdImage . firmwarePartitionName } :${ firmware-path } " ;
96+ "/dev/disk/by-label/FIRMWARE :${ firmware-path } " ;
9797 StateDirectory = "raspberrypi-firmware" ;
9898 ExecStart = pkgs . writeShellScript "migrate-rpi-firmware" ''
9999 shopt -s nullglob
308308 # table, so the partition table id is a 1-indexed hex
309309 # number. So, we drop the hex prefix and stick on a "02" to
310310 # refer to the root partition.
311- "root=PARTUUID=${ lib . strings . removePrefix "0x" config . sdImage . firmwarePartitionID } -02"
312- "rootfstype=ext4"
311+ # "root=PARTUUID=${lib.strings.removePrefix "0x" config.sdImage.firmwarePartitionID}-02"
312+ # "rootfstype=ext4"
313313 "fsck.repair=yes"
314314 "rootwait"
315315 "init=/sbin/init"
You can’t perform that action at this time.
0 commit comments