44 lines
1 KiB
Nix
44 lines
1 KiB
Nix
{ config, pkgs, ... }:
|
|
let
|
|
kernel =
|
|
with pkgs;
|
|
buildLinux rec {
|
|
version = "6.11.0-rc1";
|
|
modDirVersion = version;
|
|
extraMeta.branch = "6.11";
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.collabora.com";
|
|
owner = "hardware-enablement/rockchip-3588";
|
|
repo = "linux";
|
|
rev = "28987006b56af74bdc35eba33c7a98e48c1d4c57";
|
|
hash = "sha256-nwnEqozT/7jgI6xZwm+Yg+6+7IYVIcTYaEJooL6+HfI=";
|
|
};
|
|
};
|
|
in
|
|
{
|
|
hardware.deviceTree = {
|
|
filter = "rk3588-rock-5b.dtb";
|
|
overlays = [
|
|
{
|
|
name = "fan";
|
|
dtsFile = ./fan.dts;
|
|
}
|
|
];
|
|
};
|
|
|
|
boot = {
|
|
loader.grub.enable = false;
|
|
loader.generic-extlinux-compatible.enable = true;
|
|
|
|
kernelPackages = pkgs.linuxPackagesFor kernel;
|
|
tmp.cleanOnBoot = true;
|
|
|
|
initrd.luks.devices.${config.networking.hostName} = {
|
|
device = "/dev/disk/by-uuid/b6b4bd3d-d7e1-463e-9a73-6d0f620e914a";
|
|
preLVM = true;
|
|
allowDiscards = true;
|
|
bypassWorkqueues = true;
|
|
};
|
|
};
|
|
}
|