2024-03-02 03:13:17 +00:00
|
|
|
{ config, pkgs, ... }:
|
2024-05-06 04:44:01 +00:00
|
|
|
let
|
|
|
|
kernel =
|
|
|
|
with pkgs;
|
|
|
|
buildLinux rec {
|
2024-11-11 22:50:57 +00:00
|
|
|
version = "6.12.0-rc1";
|
2024-05-06 04:44:01 +00:00
|
|
|
modDirVersion = version;
|
2024-11-11 22:50:57 +00:00
|
|
|
extraMeta.branch = "6.12";
|
2024-05-06 04:44:01 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.collabora.com";
|
|
|
|
owner = "hardware-enablement/rockchip-3588";
|
|
|
|
repo = "linux";
|
2024-11-11 22:50:57 +00:00
|
|
|
rev = "f877edfb4bdb696174f87de9d162d179c03fe57e";
|
|
|
|
hash = "sha256-X+UIg62BmE4gtrGvUG7eJj3GiSLxcbQ2N9nJ57lye4w=";
|
2024-05-06 04:44:01 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
2024-03-02 03:13:17 +00:00
|
|
|
{
|
2024-11-11 22:50:57 +00:00
|
|
|
hardware.deviceTree.filter = "rk3588-rock-5b.dtb";
|
2024-02-10 06:06:43 +00:00
|
|
|
|
2023-12-04 23:02:43 +00:00
|
|
|
boot = {
|
2023-12-04 23:34:25 +00:00
|
|
|
loader.grub.enable = false;
|
|
|
|
loader.generic-extlinux-compatible.enable = true;
|
|
|
|
|
2024-05-06 04:44:01 +00:00
|
|
|
kernelPackages = pkgs.linuxPackagesFor kernel;
|
2023-12-04 23:02:43 +00:00
|
|
|
tmp.cleanOnBoot = true;
|
|
|
|
};
|
2024-11-20 23:15:12 +00:00
|
|
|
|
|
|
|
swapDevices = [
|
|
|
|
{
|
|
|
|
device = "/dev/disk/by-partuuid/bf3edb8a-e33d-46d7-a916-6d9649621745";
|
|
|
|
randomEncryption = {
|
|
|
|
enable = true;
|
|
|
|
allowDiscards = true;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
2023-12-04 23:02:43 +00:00
|
|
|
}
|