mirror of
https://github.com/nix-community/raspberry-pi-nix.git
synced 2025-11-25 03:39:37 +01:00
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:
parent
aaec735faf
commit
48321bb555
4 changed files with 386 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue