chore: undo dtparams, improve kernel building code

This commit is contained in:
adminy 2024-06-23 02:00:09 +01:00
parent aa99f3a2dd
commit 57a532319e
5 changed files with 93 additions and 73 deletions

View file

@ -20,7 +20,8 @@
'';
};
board = config.raspberry-pi-nix.board;
kernel = pkgs.rpi-kernels."latest_${board}".kernel;
version = config.raspberry-pi-nix.kernel_version;
kernel = pkgs.rpi-kernels."${version}"."${board}";
populate-kernel =
if config.raspberry-pi-nix.uboot.enable
then ''