mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-06 18:08:38 +08:00
format nix code after nixfmt update
This commit is contained in:
@@ -6,8 +6,7 @@
|
||||
../../../common/gpu/amd
|
||||
];
|
||||
|
||||
boot.kernelParams =
|
||||
[
|
||||
boot.kernelParams = [
|
||||
# There seems to be an issue with panel self-refresh (PSR) that
|
||||
# causes hangs for users.
|
||||
#
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
../../../common/cpu/intel
|
||||
];
|
||||
|
||||
boot.kernelParams =
|
||||
[
|
||||
boot.kernelParams = [
|
||||
# For Power consumption
|
||||
# https://community.frame.work/t/linux-battery-life-tuning/6665/156
|
||||
"nvme.noacpi=1"
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
../../../common/gpu/amd
|
||||
];
|
||||
|
||||
boot.kernelParams =
|
||||
[
|
||||
boot.kernelParams = [
|
||||
# There seems to be an issue with panel self-refresh (PSR) that
|
||||
# causes hangs for users.
|
||||
#
|
||||
|
||||
@@ -10,8 +10,7 @@
|
||||
# remove all packages for amd igpu. I only removed amdgpu from
|
||||
# services.xserver.videoDrivers by overriding. This is because the specialization
|
||||
# of nix cannot implement such an operation as canceling an import.
|
||||
hardware =
|
||||
{
|
||||
hardware = {
|
||||
nvidia.prime.offload.enable = false;
|
||||
}
|
||||
// lib.optionalAttrs (options ? amdgpu.opencl.enable) {
|
||||
|
||||
@@ -10,8 +10,7 @@
|
||||
# remove all packages for amd igpu. I only removed amdgpu from
|
||||
# services.xserver.videoDrivers by overriding. This is because the specialization
|
||||
# of nix cannot implement such an operation as canceling an import.
|
||||
hardware =
|
||||
{
|
||||
hardware = {
|
||||
nvidia.prime.offload.enable = false;
|
||||
}
|
||||
// lib.optionalAttrs (options ? amdgpu.opencl.enable) {
|
||||
|
||||
@@ -3,8 +3,7 @@
|
||||
{
|
||||
imports = [ ../hybrid ];
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
hardware =
|
||||
{
|
||||
hardware = {
|
||||
nvidia.prime.offload.enable = false;
|
||||
}
|
||||
// lib.optionalAttrs (options ? amdgpu.opencl.enable) {
|
||||
|
||||
@@ -14,8 +14,9 @@
|
||||
|
||||
# amdgpu.backlight=0 makes the backlight work
|
||||
# acpi_backlight=none allows the backlight save/load systemd service to work on older kernel versions
|
||||
boot.kernelParams =
|
||||
[ "amdgpu.backlight=0" ]
|
||||
boot.kernelParams = [
|
||||
"amdgpu.backlight=0"
|
||||
]
|
||||
++ lib.optional (lib.versionOlder config.boot.kernelPackages.kernel.version "6.1.6") "acpi_backlight=none";
|
||||
|
||||
# For mainline support of rtw89 wireless networking
|
||||
|
||||
@@ -24,8 +24,7 @@ let
|
||||
let
|
||||
inherit (builtins) removeAttrs;
|
||||
|
||||
args' =
|
||||
{
|
||||
args' = {
|
||||
inherit
|
||||
src
|
||||
version
|
||||
|
||||
@@ -139,7 +139,8 @@
|
||||
device = "/iso/nix-store.squashfs";
|
||||
options = [
|
||||
"loop"
|
||||
] ++ lib.optional (config.boot.kernelPackages.kernel.kernelAtLeast "6.2") "threads=multi";
|
||||
]
|
||||
++ lib.optional (config.boot.kernelPackages.kernel.kernelAtLeast "6.2") "threads=multi";
|
||||
neededForBoot = true;
|
||||
};
|
||||
|
||||
|
||||
@@ -47,8 +47,7 @@ pkgs.stdenv.mkDerivation rec {
|
||||
${firmwareSeco} --auto-accept --force
|
||||
'';
|
||||
|
||||
filesToInstall =
|
||||
[
|
||||
filesToInstall = [
|
||||
"firmware-imx-${fwHdmiVersion}/firmware/hdmi/cadence/dpfw.bin"
|
||||
"firmware-imx-${fwHdmiVersion}/firmware/hdmi/cadence/hdmi?xfw.bin"
|
||||
]
|
||||
|
||||
@@ -61,8 +61,7 @@ pkgs.stdenv.mkDerivation {
|
||||
--replace "\$(CROSS_COMPILE_\$(sm))cpp" ${cpp}/bin/cpp
|
||||
'';
|
||||
|
||||
makeFlags =
|
||||
[
|
||||
makeFlags = [
|
||||
"PLATFORM=${platform}"
|
||||
]
|
||||
++ lib.optionals (!hasFullPlatform) [
|
||||
@@ -85,5 +84,6 @@ pkgs.stdenv.mkDerivation {
|
||||
homepage = "https://github.com/nxp-imx/imx-optee-os";
|
||||
license = [ lib.licenses.bsd2 ];
|
||||
platforms = [ "aarch64-linux" ];
|
||||
} // meta;
|
||||
}
|
||||
// meta;
|
||||
}
|
||||
|
||||
@@ -57,7 +57,8 @@ stdenv.mkDerivation {
|
||||
gnutls
|
||||
perl
|
||||
efitools
|
||||
] ++ extraNativeBuildInputs;
|
||||
]
|
||||
++ extraNativeBuildInputs;
|
||||
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
hardeningDisable = [ "all" ];
|
||||
|
||||
@@ -45,7 +45,8 @@ let
|
||||
};
|
||||
}
|
||||
{ patch = ./irq-desc-to-data.patch; }
|
||||
] ++ kernelPatches;
|
||||
]
|
||||
++ kernelPatches;
|
||||
|
||||
structuredExtraConfig = with lib.kernel; {
|
||||
# A ton of stuff just does not build. We disable it all.
|
||||
|
||||
Reference in New Issue
Block a user