Skip to content

Commit

Permalink
Merge pull request #82 from nix-community/kernel-override
Browse files Browse the repository at this point in the history
only mention rpi-kernels when overriding kernel
  • Loading branch information
tstat authored Nov 5, 2024
2 parents db08995 + ecc8ca5 commit 57e8e8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rpi/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ let
cfg = config.raspberry-pi-nix;
version = cfg.kernel-version;
board = cfg.board;
kernel = pkgs.rpi-kernels."${version}"."${board}";
kernel = config.system.build.kernel;
in
{
imports = [ ../sd-image ./config.nix ./i2c.nix ];
Expand Down Expand Up @@ -323,7 +323,7 @@ in
"reset-raspberrypi" # required for vl805 firmware to load
];
};
kernelPackages = pkgs.linuxPackagesFor kernel;
kernelPackages = pkgs.linuxPackagesFor pkgs.rpi-kernels."${version}"."${board}";
loader = {
grub.enable = lib.mkDefault false;
initScript.enable = !cfg.uboot.enable;
Expand Down
2 changes: 1 addition & 1 deletion sd-image/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
cfg = config.raspberry-pi-nix;
version = cfg.kernel-version;
board = cfg.board;
kernel = pkgs.rpi-kernels."${version}"."${board}";
kernel = config.system.build.kernel;
populate-kernel =
if cfg.uboot.enable
then ''
Expand Down

0 comments on commit 57e8e8e

Please sign in to comment.