mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-05 01:37:24 +08:00
chore: format repo using treefmt-nix and nixfmt-rfc-style
This commit is contained in:
@@ -1,28 +1,31 @@
|
||||
{ lib
|
||||
, buildLinux
|
||||
, fetchFromGitLab
|
||||
, ...
|
||||
} @ args:
|
||||
buildLinux (args
|
||||
{
|
||||
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;
|
||||
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 { })
|
||||
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 { }
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user