diff --git a/hosts/pi/hardware-configuration.nix b/hosts/pi/hardware-configuration.nix index 4fef963..ca56fe7 100644 --- a/hosts/pi/hardware-configuration.nix +++ b/hosts/pi/hardware-configuration.nix @@ -6,6 +6,25 @@ ]; boot = { + kernelPackages = let + version = "6.6.51"; + tag = "stable_20241008"; + srcHash = "sha256-phCxkuO+jUGZkfzSrBq6yErQeO2Td+inIGHxctXbD5U="; + in pkgs.linuxPackagesFor (pkgs.linux_rpi4.override { + argsOverride = { + src = pkgs.fetchFromGitHub { + owner = "raspberrypi"; + repo = "linux"; + rev = tag; + hash = srcHash; + }; + version = version; + modDirVersion = version; + structuredExtraConfig = {}; + kernelPatches = []; + }; + }); + # Stop ZFS kernel being built supportedFilesystems = lib.mkForce [ "btrfs" "cifs" "f2fs" "jfs" "ntfs" "reiserfs" "vfat" "xfs" ]; tmp.cleanOnBoot = true; @@ -14,9 +33,24 @@ # Fix missing modules # https://github.com/NixOS/nixpkgs/issues/154163 nixpkgs.overlays = [ - (final: super: { + (final: prev: { makeModulesClosure = x: - super.makeModulesClosure (x // { allowMissing = true; }); + prev.makeModulesClosure (x // { allowMissing = true; }); + }) + (final: prev: { + raspberrypifw = let + version = "1.20241008"; + srcHash = "sha256-4gnK0KbqFnjBmWia9Jt2gveVWftmHrprpwBqYVqE/k0="; + in pkgs.blah.override { + argsOverride = { + src = prev.fetchFromGitHub { + owner = "raspberrypi"; + repo = "firmware"; + rev = "${version}"; + hash = srcHash; + }; + }; + }; }) ];