1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-22 19:09:42 +01:00

treewide: apply deadnix and statix

This commit is contained in:
Jörg Thalheim 2022-12-31 11:52:38 +01:00
parent d7dfd13d25
commit 03c6d15152
117 changed files with 93 additions and 162 deletions

View file

@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ pkgs, ... }:
{
imports = [ ../../common/pc/laptop ];

View file

@ -1,5 +1,3 @@
{ lib, pkgs, ... }:
{
imports = [
../.

View file

@ -1,8 +1,8 @@
{ lib, config, pkgs, ... }:
{ lib, config, ... }:
let
kernelPackages = config.boot.kernelPackages;
inherit (config.boot) kernelPackages;
in

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, modulesPath, ... }:
{ config, lib, pkgs, ... }:
{
imports = [

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ pkgs, lib, ... }:
{
imports = [
../../../common/cpu/amd/pstate.nix

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
{
hardware.cpu.intel.updateMicrocode =

View file

@ -1,5 +1,3 @@
{ config, lib, pkgs, ... }:
{
imports = [
./cpu-only.nix

View file

@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:
{
# This runs only intel/amdgpu igpus and nvidia dgpus do not drain power.

View file

@ -1,3 +1 @@
{ lib, ... }:
{}

View file

@ -1,5 +1,3 @@
{ lib, pkgs, ... }:
{
imports = [
../../common/cpu/intel

View file

@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:
{
imports = [

View file

@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ ... }:
{
imports = [

View file

@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:
{
imports = [

View file

@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:
{
imports = [

View file

@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:
{
imports = [

View file

@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:
{
imports = [

View file

@ -1,5 +1,3 @@
{ lib, pkgs, ... }:
{
imports = [
../../../common/cpu/intel

View file

@ -1,4 +1,4 @@
{ config, lib, ... }:
{ lib, ... }:
let
inherit (lib) mkDefault;

View file

@ -1,5 +1,3 @@
{ lib, pkgs, ... }:
{
imports = [
../../../common/cpu/intel/kaby-lake

View file

@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:
{
imports = [

View file

@ -1,5 +1,3 @@
{ lib, pkgs, ... }:
{
imports = [
../../../common/cpu/intel

View file

@ -1,4 +1,3 @@
{ lib, ... }:
{
imports = [
../../../common/cpu/intel
@ -25,8 +24,8 @@
# The 48.ucode causes the Killer wifi card to crash.
# The iwlfwifi-cc-a0-46.ucode works perfectly
nixpkgs.overlays = [
(self: super: {
firmwareLinuxNonfree = super.firmwareLinuxNonfree.overrideAttrs (old: {
(_self: super: {
firmwareLinuxNonfree = super.firmwareLinuxNonfree.overrideAttrs (_old: {
src = super.fetchgit {
url =
"https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git";

View file

@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:
{
imports = [
../default.nix

View file

@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:
{
imports = [
../default.nix

View file

@ -1,5 +1,3 @@
{ lib, pkgs, ... }:
{
imports = [
../../../../common/cpu/intel

View file

@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:
{
imports = [

View file

@ -1,5 +1,3 @@
{ lib, pkgs, ... }:
{
imports = [
../../../../common/cpu/intel

View file

@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:
{
imports = [

View file

@ -1,7 +1,7 @@
{
description = "nixos-hardware";
outputs = { self }: {
outputs = _: {
nixosModules = {
acer-aspire-4810t = import ./acer/aspire/4810t;
airis-n990 = import ./airis/n990;

View file

@ -1,8 +1,5 @@
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
with lib;
let
xcfg = config.services.xserver;
in
{
imports = [
../../../common/cpu/intel

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, lib, ... }:
with lib;
{
config = {

View file

@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:
{
imports = [

View file

@ -1,4 +1,4 @@
final: prev: {
final: _prev: {
linux_5_15_helios4 = final.linux_5_15.override {
kernelPatches = [
# A patch to get both PWM fans working

View file

@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:
{
imports = [

View file

@ -1,5 +1,3 @@
{ lib, ... }:
{
imports = [
../.

View file

@ -1,5 +1,6 @@
{ lib, config, ... }:
let kernelPackages = config.boot.kernelPackages;
let
inherit (config.boot) kernelPackages;
in {
imports = [
../../../common/cpu/amd

View file

@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:
{
imports = [

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ...}:
{ pkgs, ...}:
let
# This file was obtained from the display while "DDG" mode was enabled.

View file

@ -1,4 +1,4 @@
{ config, lib, ... }:
{ lib, ... }:
{
imports = [

View file

@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:
{
imports = [

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
{
imports = [ ../../common/pc/laptop ];

View file

@ -1,5 +1,3 @@
{ config, lib, pkgs, ... }:
{
imports = [
../.

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ ... }:
{
imports = [

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, ... }:
{
imports = [

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:
{
imports = [

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:
{
imports = [

View file

@ -1,4 +1,4 @@
{ nixos, lib, pkgs, config, stdenv, ... }:
{ lib, ... }:
{
imports = [
../../../common/cpu/intel

View file

@ -1,4 +1,4 @@
{ nixos, lib, pkgs, config, stdenv, ... }:
{ lib, config, ... }:
{
imports = [
../.

View file

@ -1,5 +1,3 @@
{ config, lib, pkgs, ... }:
{
imports = [
../.

View file

@ -1,5 +1,3 @@
{ config, lib, pkgs, ... }:
{
imports = [
../.

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, ... }:
{
imports = [

View file

@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:
{
hardware.nvidia.modesetting.enable = true;
hardware.opengl.driSupport32Bit = true;

View file

@ -1,5 +1,5 @@
{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:
{
imports = [

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:
{
# For mainline support of rtw89 wireless networking

View file

@ -1,4 +1,4 @@
{ nixos, pkgs, lib, config, stdenv, ... }:
{ lib, ... }:
{
imports = [
../../../common/cpu/intel

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:
{
imports = [

View file

@ -1,6 +1,3 @@
{ config, lib, pkgs, ... }:
{
imports = [
../.

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:
{
imports = [

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:
{
imports = [

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:
{
imports = [

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:
{
imports = [

View file

@ -1,5 +1,5 @@
{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:
{
imports = [

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:
{
imports = [

View file

@ -1,5 +1,3 @@
{ config, lib, pkgs, ... }:
{
imports = [
../.

View file

@ -1,5 +1,3 @@
{ config, lib, pkgs, ... }:
{
imports = [
../.

View file

@ -1,5 +1,3 @@
{ config, lib, pkgs, ... }:
{
imports = [
../.

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, ... }:
{
imports = [

View file

@ -1,5 +1,3 @@
{ config, lib, pkgs, ... }:
{
imports = [
../.

View file

@ -1,5 +1,3 @@
{ config, lib, pkgs, ... }:
{
imports = [
../../../common/cpu/intel

View file

@ -1,5 +1,3 @@
{ config, lib, pkgs, ... }:
{
imports = [
../../../common/cpu/intel

View file

@ -1,5 +1,3 @@
{ config, lib, pkgs, ... }:
{
imports = [
../../../common/cpu/intel

View file

@ -1,5 +1,3 @@
{ config, lib, pkgs, ... }:
{
imports = [
../../../common/cpu/intel

View file

@ -1,5 +1,3 @@
{ config, lib, pkgs, ... }:
{
imports = [
../../../common/cpu/intel

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, ... }:
{
imports = [

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, ... }:
{
imports = [

View file

@ -1,4 +1,4 @@
{ nixos, lib, pkgs, config, stdenv, ... }:
{ lib, ... }:
{
imports = [
../../../common/cpu/intel

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:
{
imports = [

View file

@ -1,5 +1,3 @@
{ config, lib, pkgs, ... }:
{
imports = [
../../../common/cpu/intel

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, ... }:
{
imports = [

View file

@ -19,7 +19,7 @@ with lib;
hardware.bumblebee.connectDisplay = true;
nixpkgs.overlays = [
(self: super: {
(_self: super: {
bumblebee = super.bumblebee.override {
extraNvidiaDeviceOptions = ''
Option "AllowEmptyInitialConfiguration"

View file

@ -1,4 +1,4 @@
{ config, lib, ... }:
{ lib, ... }:
{
imports = [

View file

@ -1,4 +1,3 @@
{ lib, pkgs, ... }:
{
imports = [
../.

View file

@ -1,6 +1,4 @@
# X1 6th generation with a QHD (2560x1440px) display
{ config, lib, pkgs, ... }:
{
imports = [
../.

View file

@ -5,7 +5,7 @@
#
# Enable the lower-power S3 suspend state by upgrading the BIOS to version >= 1.30,
# then manually selecting Linux in the power management section.
{ config, pkgs, lib, ... }:
{ lib, ... }:
{
imports = [
../.

View file

@ -1,4 +1,4 @@
{ config, lib, ... }: {
{ ... }: {
# Reference to hardware: https://certification.ubuntu.com/hardware/202004-27844
imports = [
../.

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, ... }:
{
imports = [

View file

@ -1,5 +1,3 @@
{ config, lib, pkgs, ... }:
{
imports = [
../.

View file

@ -1,5 +1,3 @@
{ config, lib, pkgs, ... }:
{
imports = [
../.

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, ... }:
{
imports = [

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ lib, ... }:
{
imports = [

View file

@ -1,5 +1,3 @@
{ config, lib, pkgs, ... }:
{
# automatic screen orientation
hardware.sensor.iio.enable = true;

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: {
{ lib, pkgs, ... }: {
imports = [
../../../lenovo/thinkpad
../../../common/cpu/amd

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: {
{
imports = [
../../../../lenovo/thinkpad/z
];

View file

@ -1,4 +1,3 @@
{ lib, ... }:
{
imports = [ ../../surface ];
}

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:
let
inherit (lib) mkDefault;

View file

@ -1,7 +1,7 @@
{ stdenv, lib, pkgs, firmwareLinuxNonfree, ... }:
let
repos = (pkgs.callPackage ../../../repos.nix {});
repos = pkgs.callPackage ../../../repos.nix {};
killernetworking_firmware = repos.surface-go-ath10k-firmware_backup + "/K1535_Debian";
in stdenv.mkDerivation {

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, ... }:
let
inherit (lib) mkOption types;

View file

@ -1,12 +1,11 @@
{ lib,
buildLinux,
callPackage,
fetchurl,
linuxPackagesFor,
}:
let
inherit (lib) kernel recurseIntoAttrs;
inherit (lib) recurseIntoAttrs;
in {
repos = callPackage ../repos.nix {};

View file

@ -1,4 +1,4 @@
{ fetchFromGitHub, fetchurl }:
{ fetchFromGitHub }:
{
linux-surface = fetchFromGitHub {

View file

@ -1,4 +1,4 @@
{ config, lib, ... }:
{ lib, ... }:
{
imports = [

Some files were not shown because too many files have changed in this diff Show more