mirror of
https://github.com/nix-community/raspberry-pi-nix.git
synced 2025-11-08 11:36:04 +01:00
fix: fix targets for flake, add kernel 6.6.34
This commit is contained in:
parent
57a532319e
commit
b027897628
7 changed files with 97 additions and 67 deletions
|
|
@ -19,13 +19,14 @@
|
|||
${lib.strings.concatStringsSep " " config.boot.kernelParams}
|
||||
'';
|
||||
};
|
||||
board = config.raspberry-pi-nix.board;
|
||||
version = config.raspberry-pi-nix.kernel_version;
|
||||
cfg = config.raspberry-pi-nix;
|
||||
board = cfg.board;
|
||||
version = cfg.kernel-version;
|
||||
kernel = pkgs.rpi-kernels."${version}"."${board}";
|
||||
populate-kernel =
|
||||
if config.raspberry-pi-nix.uboot.enable
|
||||
if cfg.uboot.enable
|
||||
then ''
|
||||
cp ${pkgs.uboot_rpi_arm64}/u-boot.bin firmware/u-boot-rpi-arm64.bin
|
||||
cp ${pkgs.uboot-rpi-arm64}/u-boot.bin firmware/u-boot-rpi-arm64.bin
|
||||
''
|
||||
else ''
|
||||
cp "${kernel}/Image" firmware/kernel.img
|
||||
|
|
@ -39,7 +40,7 @@
|
|||
cp ${config.hardware.raspberry-pi.config-output} firmware/config.txt
|
||||
'';
|
||||
populateRootCommands =
|
||||
if config.raspberry-pi-nix.uboot.enable
|
||||
if cfg.uboot.enable
|
||||
then ''
|
||||
mkdir -p ./files/boot
|
||||
${config.boot.loader.generic-extlinux-compatible.populateCmd} -c ${config.system.build.toplevel} -d ./files/boot
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue