Skip to content

Commit

Permalink
Merge pull request #3 from garetroy/main
Browse files Browse the repository at this point in the history
Enabled rpi linux modules
  • Loading branch information
plmercereau authored Oct 17, 2024
2 parents e752e7b + b717566 commit de89de4
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions zero2w.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,18 @@
./sd-image.nix
];

# Some packages (ahci fail... this bypasses that) https://discourse.nixos.org/t/does-pkgs-linuxpackages-rpi3-build-all-required-kernel-modules/42509
nixpkgs.overlays = [
(final: super: {
makeModulesClosure = x:
super.makeModulesClosure (x // { allowMissing = true; });
})
];

nixpkgs.hostPlatform = "aarch64-linux";
# ! Need a trusted user for deploy-rs.
nix.settings.trusted-users = ["@wheel"];
system.stateVersion = "23.11";
system.stateVersion = "24.05";

zramSwap = {
enable = true;
Expand Down Expand Up @@ -42,8 +50,7 @@
hardware.firmware = [pkgs.raspberrypiWirelessFirmware];

boot = {
# TODO doesn't work
# kernelPackages = pkgs.linuxKernel.packages.linux_rpi3;
kernelPackages = pkgs.linuxPackages_rpi02w;

initrd.availableKernelModules = ["xhci_pci" "usbhid" "usb_storage"];
loader = {
Expand Down

0 comments on commit de89de4

Please sign in to comment.