Add 'NetImage' config option for Pi Netboot (#1)

* Add wip netboot image gen

* rem firmware dir

* additional logging

* nixosConfigurations

* config.fileSystems

* rework rootfs output dir

* nfs/boot/firmware

* boot.initrd.network.enable = true;

* nfsOptions

* neededForBoot, supportedFilesystems
This commit is contained in:
Andrew Kidd 2025-01-04 16:30:34 +00:00 committed by GitHub
parent aaec735faf
commit 48321bb555
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 386 additions and 0 deletions

View file

@ -60,12 +60,17 @@
libcamera-overlay = self.overlays.libcamera;
};
sd-image = import ./sd-image;
net-image = import ./net-image;
};
nixosConfigurations = {
rpi-example = srcs.nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [ self.nixosModules.raspberry-pi self.nixosModules.sd-image ./example ];
};
rpi-net-example = srcs.nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [ self.nixosModules.raspberry-pi self.nixosModules.net-image ./example ];
};
};
checks.aarch64-linux = self.packages.aarch64-linux;
packages.aarch64-linux = with pinned.lib;
@ -82,6 +87,7 @@
in
{
example-sd-image = self.nixosConfigurations.rpi-example.config.system.build.sdImage;
example-net-image = self.nixosConfigurations.rpi-net-example.config.system.build.netImage;
firmware = pinned.raspberrypifw;
libcamera = pinned.libcamera;
wireless-firmware = pinned.raspberrypiWirelessFirmware;