From a7be7d2a7fbd7845a1405ac005544f77cce4989d Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Mon, 6 May 2024 04:44:01 +0000 Subject: [PATCH] smolder: Use Collabora kernel --- system/smolder/boot-config.nix | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/system/smolder/boot-config.nix b/system/smolder/boot-config.nix index 439eb78..5993a0d 100644 --- a/system/smolder/boot-config.nix +++ b/system/smolder/boot-config.nix @@ -1,4 +1,20 @@ { config, pkgs, ... }: +let + kernel = + with pkgs; + buildLinux rec { + version = "6.9.0-rc1"; + modDirVersion = version; + extraMeta.branch = "6.9"; + src = fetchFromGitLab { + domain = "gitlab.collabora.com"; + owner = "hardware-enablement/rockchip-3588"; + repo = "linux"; + rev = "b8807d4c1f35361910dadfac9b2d4911fe033f45"; + hash = "sha256-SY1SWr5QqqxkaBXToObO9hTrklbFdJle3r5F26LXqK4="; + }; + }; +in { hardware.deviceTree = { filter = "rk3588-rock-5b.dtb"; @@ -14,7 +30,7 @@ loader.grub.enable = false; loader.generic-extlinux-compatible.enable = true; - kernelPackages = pkgs.linuxPackages_latest; + kernelPackages = pkgs.linuxPackagesFor kernel; tmp.cleanOnBoot = true; initrd.luks.devices.${config.networking.hostName} = {