nixfiles/hosts/kilgharrah/hardware.nix
Katherina Walshe-Grey 1a44b2baac kilgharrah: Use kernel 6.18
For some reason, using kernel 6.12.76 (the current on 25.11 at time of
writing), the xe module crashes on load with a null pointer
dereference. This didn't happen on 6.12.74. I can't place the
regression, but 6.18.17 seems to work fine.
2026-03-17 22:03:03 +00:00

41 lines
1.4 KiB
Nix

{ config, lib, pkgs, ... }:
{
hardware.enableAllFirmware = true;
hardware.cpu.intel.updateMicrocode = true;
services.fwupd.enable = true;
boot.kernelPackages = pkgs.linuxKernel.packages.linux_6_18; # 6.12 (current default for 25.11) seems to make the xe module crash on load? needs more investigation
services.xserver.videoDrivers = [ "modesetting" ];
hardware.graphics = {
enable = true;
extraPackages = with pkgs; [
intel-media-driver
vpl-gpu-rt
intel-compute-runtime
];
};
services.printing.drivers = [ pkgs.hplip ];
# enable playing from bluray drive
boot.kernelModules = [ "sg" ];
environment.systemPackages = [
((pkgs.vlc.override {
libbluray = (pkgs.libbluray.override {
withJava = true;
withAACS = true;
withBDplus = true;
});
}).overrideAttrs (originalAttrs: {
buildInputs = originalAttrs.buildInputs ++ [ pkgs.libdvdcss ];
# TODO: nixpkgs bug: libbluray needs patching to look at the nix store path of jdk17 when searching for a jdk
# as a workaround, wrap vlc and set JAVA_HOME, which it uses instead of searching when specified
nativeBuildInputs = originalAttrs.nativeBuildInputs ++ [ pkgs.makeWrapper ];
postFixup = ''
${originalAttrs.postFixup or ""}
wrapProgram $out/bin/vlc --set JAVA_HOME ${pkgs.jdk17.home}
'';
}))
];
}