forked from NixOS/nixos-hardware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkernel.nix
28 lines (27 loc) · 827 Bytes
/
kernel.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib
, buildLinux
, fetchFromGitLab
, ...
} @ args:
buildLinux (args
// rec {
defconfig = "librem5_defconfig";
version = "6.6.74-librem5";
modDirVersion = version;
src = fetchFromGitLab {
domain = "source.puri.sm";
owner = "Librem5";
repo = "linux";
rev = "pureos/6.6.74pureos1";
hash = "sha256-qUPY+2fHVu7SFc+Uf8U7QtkQJJsE/4I1SavpLqJ/34c=";
};
kernelPatches = [ ];
# see https://github.com/NixOS/nixpkgs/pull/366004
ignoreConfigErrors = true;
structuredExtraConfig = with lib.kernel; {
# buildLinux overrides this and defaults to 32, so go back to the value defined librem5_defconfig
# this is required for millipixels to take photos, otherwise the VIDIOC_REQ_BUFS ioctl returns ENOMEM
CMA_SIZE_MBYTES = lib.mkForce (freeform "320");
};
}
// args.argsOverride or { })