Skip to content

Commit

Permalink
rp3: Use the dedicated kernel package
Browse files Browse the repository at this point in the history
  • Loading branch information
wagdav committed Jan 19, 2024
1 parent 8106360 commit d325935
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions hardware/rp3.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,23 @@ in
nixpkgs.system = "aarch64-linux";

boot = {
kernelPackages = pkgs.linuxPackages_rpi3;
kernelModules = [ "bcm2835-v4l2" ];
loader = {
grub.enable = false;
generic-extlinux-compatible.enable = true;
};
};

# Fix missing modules
# https://github.com/NixOS/nixpkgs/issues/154163
nixpkgs.overlays = [
(final: super: {
makeModulesClosure = x:
super.makeModulesClosure (x // { allowMissing = true; });
})
];

networking.wireless = {
enable = true;
environmentFile = "/etc/secrets/wireless.env";
Expand Down

0 comments on commit d325935

Please sign in to comment.