Skip to content

Commit

Permalink
treewide: apply deadnix and statix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Dec 31, 2022
1 parent d7dfd13 commit 03c6d15
Show file tree
Hide file tree
Showing 117 changed files with 93 additions and 162 deletions.
2 changes: 1 addition & 1 deletion airis/n990/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ pkgs, ... }:

{
imports = [ ../../common/pc/laptop ];
Expand Down
2 changes: 0 additions & 2 deletions apple/macbook-pro/10-1/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{ lib, pkgs, ... }:

{
imports = [
../.
Expand Down
4 changes: 2 additions & 2 deletions apple/macbook-pro/11-5/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{ lib, config, pkgs, ... }:
{ lib, config, ... }:

let

kernelPackages = config.boot.kernelPackages;
inherit (config.boot) kernelPackages;

in

Expand Down
2 changes: 1 addition & 1 deletion apple/macbook-pro/14-1/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, pkgs, modulesPath, ... }:
{ config, lib, pkgs, ... }:

{
imports = [
Expand Down
2 changes: 1 addition & 1 deletion asus/rog-strix/g733qs/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ pkgs, lib, ... }:
{
imports = [
../../../common/cpu/amd/pstate.nix
Expand Down
2 changes: 1 addition & 1 deletion common/cpu/intel/cpu-only.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, ... }:

{
hardware.cpu.intel.updateMicrocode =
Expand Down
2 changes: 0 additions & 2 deletions common/cpu/intel/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{ config, lib, pkgs, ... }:

{
imports = [
./cpu-only.nix
Expand Down
2 changes: 1 addition & 1 deletion common/gpu/nvidia/disable.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:

{
# This runs only intel/amdgpu igpus and nvidia dgpus do not drain power.
Expand Down
2 changes: 0 additions & 2 deletions common/pc/hdd/default.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
{ lib, ... }:

{}
2 changes: 0 additions & 2 deletions dell/e7240/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{ lib, pkgs, ... }:

{
imports = [
../../common/cpu/intel
Expand Down
2 changes: 1 addition & 1 deletion dell/g3/3779/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:

{
imports = [
Expand Down
2 changes: 1 addition & 1 deletion dell/latitude/3340/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ ... }:

{
imports = [
Expand Down
2 changes: 1 addition & 1 deletion dell/latitude/3480/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:

{
imports = [
Expand Down
2 changes: 1 addition & 1 deletion dell/latitude/5520/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:

{
imports = [
Expand Down
2 changes: 1 addition & 1 deletion dell/latitude/7430/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:

{
imports = [
Expand Down
2 changes: 1 addition & 1 deletion dell/latitude/7490/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:

{
imports = [
Expand Down
2 changes: 0 additions & 2 deletions dell/precision/5530/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{ lib, pkgs, ... }:

{
imports = [
../../../common/cpu/intel
Expand Down
2 changes: 1 addition & 1 deletion dell/xps/13-9300/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, ... }:
{ lib, ... }:

let
inherit (lib) mkDefault;
Expand Down
2 changes: 0 additions & 2 deletions dell/xps/13-9360/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{ lib, pkgs, ... }:

{
imports = [
../../../common/cpu/intel/kaby-lake
Expand Down
2 changes: 1 addition & 1 deletion dell/xps/13-9370/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:

{
imports = [
Expand Down
2 changes: 0 additions & 2 deletions dell/xps/13-9380/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{ lib, pkgs, ... }:

{
imports = [
../../../common/cpu/intel
Expand Down
5 changes: 2 additions & 3 deletions dell/xps/15-7590/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{ lib, ... }:
{
imports = [
../../../common/cpu/intel
Expand All @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion dell/xps/15-9500/nvidia/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:
{
imports = [
../default.nix
Expand Down
2 changes: 1 addition & 1 deletion dell/xps/15-9550/nvidia/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:
{
imports = [
../default.nix
Expand Down
2 changes: 0 additions & 2 deletions dell/xps/15-9560/intel/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{ lib, pkgs, ... }:

{
imports = [
../../../../common/cpu/intel
Expand Down
2 changes: 1 addition & 1 deletion dell/xps/15-9560/nvidia/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:

{
imports = [
Expand Down
2 changes: 0 additions & 2 deletions dell/xps/17-9700/intel/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{ lib, pkgs, ... }:

{
imports = [
../../../../common/cpu/intel
Expand Down
2 changes: 1 addition & 1 deletion dell/xps/17-9700/nvidia/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:

{
imports = [
Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
description = "nixos-hardware";

outputs = { self }: {
outputs = _: {
nixosModules = {
acer-aspire-4810t = import ./acer/aspire/4810t;
airis-n990 = import ./airis/n990;
Expand Down
5 changes: 1 addition & 4 deletions hp/elitebook/2560p/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
with lib;
let
xcfg = config.services.xserver;
in
{
imports = [
../../../common/cpu/intel
Expand Down
2 changes: 1 addition & 1 deletion hp/elitebook/2560p/network.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, lib, ... }:
with lib;
{
config = {
Expand Down
2 changes: 1 addition & 1 deletion intel/nuc/8i7beh/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:

{
imports = [
Expand Down
2 changes: 1 addition & 1 deletion kobol/helios4/overlay.nix
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion lenovo/ideapad/15arh05/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:

{
imports = [
Expand Down
2 changes: 0 additions & 2 deletions lenovo/ideapad/z510/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{ lib, ... }:

{
imports = [
../.
Expand Down
3 changes: 2 additions & 1 deletion lenovo/legion/15ach6/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ lib, config, ... }:
let kernelPackages = config.boot.kernelPackages;
let
inherit (config.boot) kernelPackages;
in {
imports = [
../../../common/cpu/amd
Expand Down
2 changes: 1 addition & 1 deletion lenovo/legion/15arh05h/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:

{
imports = [
Expand Down
2 changes: 1 addition & 1 deletion lenovo/legion/16ach6h/edid/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, pkgs, lib, ...}:
{ pkgs, ...}:

let
# This file was obtained from the display while "DDG" mode was enabled.
Expand Down
2 changes: 1 addition & 1 deletion lenovo/legion/16ach6h/hybrid/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, ... }:
{ lib, ... }:

{
imports = [
Expand Down
2 changes: 1 addition & 1 deletion lenovo/legion/16ithg6/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:

{
imports = [
Expand Down
2 changes: 1 addition & 1 deletion lenovo/thinkpad/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, ... }:

{
imports = [ ../../common/pc/laptop ];
Expand Down
2 changes: 0 additions & 2 deletions lenovo/thinkpad/e14/amd/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{ config, lib, pkgs, ... }:

{
imports = [
../.
Expand Down
2 changes: 1 addition & 1 deletion lenovo/thinkpad/e14/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ ... }:

{
imports = [
Expand Down
2 changes: 1 addition & 1 deletion lenovo/thinkpad/e14/intel/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, ... }:

{
imports = [
Expand Down
2 changes: 1 addition & 1 deletion lenovo/thinkpad/e470/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:

{
imports = [
Expand Down
2 changes: 1 addition & 1 deletion lenovo/thinkpad/e495/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:

{
imports = [
Expand Down
2 changes: 1 addition & 1 deletion lenovo/thinkpad/l13/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ nixos, lib, pkgs, config, stdenv, ... }:
{ lib, ... }:
{
imports = [
../../../common/cpu/intel
Expand Down
2 changes: 1 addition & 1 deletion lenovo/thinkpad/l13/yoga/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ nixos, lib, pkgs, config, stdenv, ... }:
{ lib, config, ... }:
{
imports = [
../.
Expand Down
2 changes: 0 additions & 2 deletions lenovo/thinkpad/l14/amd/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{ config, lib, pkgs, ... }:

{
imports = [
../.
Expand Down
2 changes: 0 additions & 2 deletions lenovo/thinkpad/l14/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{ config, lib, pkgs, ... }:

{
imports = [
../.
Expand Down
2 changes: 1 addition & 1 deletion lenovo/thinkpad/l14/intel/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, ... }:

{
imports = [
Expand Down
2 changes: 1 addition & 1 deletion lenovo/thinkpad/p1/3th-gen/nvidia.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:
{
hardware.nvidia.modesetting.enable = true;
hardware.opengl.driSupport32Bit = true;
Expand Down
2 changes: 1 addition & 1 deletion lenovo/thinkpad/p14s/amd/gen2/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:

{
imports = [
Expand Down
2 changes: 1 addition & 1 deletion lenovo/thinkpad/p16s/amd/gen1/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:

{
# For mainline support of rtw89 wireless networking
Expand Down
2 changes: 1 addition & 1 deletion lenovo/thinkpad/p53/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ nixos, pkgs, lib, config, stdenv, ... }:
{ lib, ... }:
{
imports = [
../../../common/cpu/intel
Expand Down
2 changes: 1 addition & 1 deletion lenovo/thinkpad/t14/amd/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:

{
imports = [
Expand Down
3 changes: 0 additions & 3 deletions lenovo/thinkpad/t14/amd/gen1/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@

{ config, lib, pkgs, ... }:

{
imports = [
../.
Expand Down
2 changes: 1 addition & 1 deletion lenovo/thinkpad/t14/amd/gen2/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:

{
imports = [
Expand Down
2 changes: 1 addition & 1 deletion lenovo/thinkpad/t14/amd/gen3/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:

{
imports = [
Expand Down
2 changes: 1 addition & 1 deletion lenovo/thinkpad/t14/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:

{
imports = [
Expand Down
2 changes: 1 addition & 1 deletion lenovo/thinkpad/t14s/amd/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:

{
imports = [
Expand Down
2 changes: 1 addition & 1 deletion lenovo/thinkpad/t14s/amd/gen1/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:

{
imports = [
Expand Down
Loading

0 comments on commit 03c6d15

Please sign in to comment.