nixos-config/system/smolder/boot-config.nix

44 lines
1 KiB
Nix
Raw Normal View History

2024-03-02 03:13:17 +00:00
{ config, pkgs, ... }:
2024-05-06 04:44:01 +00:00
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
2024-03-02 03:13:17 +00:00
{
2024-04-25 02:40:11 +00:00
hardware.deviceTree = {
filter = "rk3588-rock-5b.dtb";
overlays = [
{
name = "fan";
dtsFile = ./fan.dts;
}
];
};
2024-02-10 06:06:43 +00:00
2023-12-04 23:02:43 +00:00
boot = {
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;
initrd.luks.devices.${config.networking.hostName} = {
device = "/dev/disk/by-uuid/b6b4bd3d-d7e1-463e-9a73-6d0f620e914a";
preLVM = true;
allowDiscards = true;
bypassWorkqueues = true;
2023-12-04 23:02:43 +00:00
};
};
}