Skip to content
This repository was archived by the owner on Mar 23, 2025. It is now read-only.

Commit d039a26

Browse files
committed
disable sd-image
1 parent db08995 commit d039a26

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

flake.nix

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,18 @@
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;

rpi/default.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ let
88
kernel = pkgs.rpi-kernels."${version}"."${board}";
99
in
1010
{
11-
imports = [ ../sd-image ./config.nix ./i2c.nix ];
11+
imports = [ ./config.nix ./i2c.nix ];
1212

1313
options = with lib; {
1414
raspberry-pi-nix = {
@@ -93,7 +93,7 @@ in
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
@@ -308,8 +308,8 @@ in
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"

0 commit comments

Comments
 (0)