diff --git a/airis/n990/default.nix b/airis/n990/default.nix index ae0681313..e4711419f 100644 --- a/airis/n990/default.nix +++ b/airis/n990/default.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, ... }: +{ pkgs, ... }: { imports = [ ../../common/pc/laptop ]; diff --git a/apple/macbook-pro/10-1/default.nix b/apple/macbook-pro/10-1/default.nix index 4d31b1cab..370309664 100644 --- a/apple/macbook-pro/10-1/default.nix +++ b/apple/macbook-pro/10-1/default.nix @@ -1,5 +1,3 @@ -{ lib, pkgs, ... }: - { imports = [ ../. diff --git a/apple/macbook-pro/11-5/default.nix b/apple/macbook-pro/11-5/default.nix index 434e8e755..81eda9b2b 100644 --- a/apple/macbook-pro/11-5/default.nix +++ b/apple/macbook-pro/11-5/default.nix @@ -1,8 +1,8 @@ -{ lib, config, pkgs, ... }: +{ lib, config, ... }: let - kernelPackages = config.boot.kernelPackages; + inherit (config.boot) kernelPackages; in diff --git a/apple/macbook-pro/14-1/default.nix b/apple/macbook-pro/14-1/default.nix index 456168416..6b1fd74ce 100644 --- a/apple/macbook-pro/14-1/default.nix +++ b/apple/macbook-pro/14-1/default.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, modulesPath, ... }: +{ config, lib, pkgs, ... }: { imports = [ diff --git a/asus/rog-strix/g733qs/default.nix b/asus/rog-strix/g733qs/default.nix index b49a44c01..b981aeff0 100644 --- a/asus/rog-strix/g733qs/default.nix +++ b/asus/rog-strix/g733qs/default.nix @@ -1,4 +1,4 @@ -{ config, pkgs, lib, ... }: +{ pkgs, lib, ... }: { imports = [ ../../../common/cpu/amd/pstate.nix diff --git a/common/cpu/intel/cpu-only.nix b/common/cpu/intel/cpu-only.nix index f48b03619..c30f0c572 100644 --- a/common/cpu/intel/cpu-only.nix +++ b/common/cpu/intel/cpu-only.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ config, lib, ... }: { hardware.cpu.intel.updateMicrocode = diff --git a/common/cpu/intel/default.nix b/common/cpu/intel/default.nix index 966505f15..5c1663f28 100644 --- a/common/cpu/intel/default.nix +++ b/common/cpu/intel/default.nix @@ -1,5 +1,3 @@ -{ config, lib, pkgs, ... }: - { imports = [ ./cpu-only.nix diff --git a/common/gpu/nvidia/disable.nix b/common/gpu/nvidia/disable.nix index c6516af98..72e89c20c 100644 --- a/common/gpu/nvidia/disable.nix +++ b/common/gpu/nvidia/disable.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, ... }: +{ lib, ... }: { # This runs only intel/amdgpu igpus and nvidia dgpus do not drain power. diff --git a/common/pc/hdd/default.nix b/common/pc/hdd/default.nix index 869badb20..0967ef424 100644 --- a/common/pc/hdd/default.nix +++ b/common/pc/hdd/default.nix @@ -1,3 +1 @@ -{ lib, ... }: - {} diff --git a/dell/e7240/default.nix b/dell/e7240/default.nix index 3334a745f..102da6bb1 100644 --- a/dell/e7240/default.nix +++ b/dell/e7240/default.nix @@ -1,5 +1,3 @@ -{ lib, pkgs, ... }: - { imports = [ ../../common/cpu/intel diff --git a/dell/g3/3779/default.nix b/dell/g3/3779/default.nix index 80deb2994..83216ebf5 100644 --- a/dell/g3/3779/default.nix +++ b/dell/g3/3779/default.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, ... }: +{ lib, ... }: { imports = [ diff --git a/dell/latitude/3340/default.nix b/dell/latitude/3340/default.nix index c7cf888db..d50b024c6 100644 --- a/dell/latitude/3340/default.nix +++ b/dell/latitude/3340/default.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, ... }: +{ ... }: { imports = [ diff --git a/dell/latitude/3480/default.nix b/dell/latitude/3480/default.nix index 86be458a1..7f6116a61 100644 --- a/dell/latitude/3480/default.nix +++ b/dell/latitude/3480/default.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, ... }: +{ lib, ... }: { imports = [ diff --git a/dell/latitude/5520/default.nix b/dell/latitude/5520/default.nix index f53ba0806..6ad43309b 100644 --- a/dell/latitude/5520/default.nix +++ b/dell/latitude/5520/default.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, ... }: +{ lib, ... }: { imports = [ diff --git a/dell/latitude/7430/default.nix b/dell/latitude/7430/default.nix index a7d737b1d..b69fd5c49 100644 --- a/dell/latitude/7430/default.nix +++ b/dell/latitude/7430/default.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, ... }: +{ lib, ... }: { imports = [ diff --git a/dell/latitude/7490/default.nix b/dell/latitude/7490/default.nix index a368f441d..9bed24339 100644 --- a/dell/latitude/7490/default.nix +++ b/dell/latitude/7490/default.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, ... }: +{ lib, ... }: { imports = [ diff --git a/dell/precision/5530/default.nix b/dell/precision/5530/default.nix index 05e1d4af8..24071f0a5 100644 --- a/dell/precision/5530/default.nix +++ b/dell/precision/5530/default.nix @@ -1,5 +1,3 @@ -{ lib, pkgs, ... }: - { imports = [ ../../../common/cpu/intel diff --git a/dell/xps/13-9300/default.nix b/dell/xps/13-9300/default.nix index 9c379aed3..148b6f91a 100644 --- a/dell/xps/13-9300/default.nix +++ b/dell/xps/13-9300/default.nix @@ -1,4 +1,4 @@ -{ config, lib, ... }: +{ lib, ... }: let inherit (lib) mkDefault; diff --git a/dell/xps/13-9360/default.nix b/dell/xps/13-9360/default.nix index f40f6e0c5..f1ea37873 100644 --- a/dell/xps/13-9360/default.nix +++ b/dell/xps/13-9360/default.nix @@ -1,5 +1,3 @@ -{ lib, pkgs, ... }: - { imports = [ ../../../common/cpu/intel/kaby-lake diff --git a/dell/xps/13-9370/default.nix b/dell/xps/13-9370/default.nix index dbe852f0c..10362b3b8 100644 --- a/dell/xps/13-9370/default.nix +++ b/dell/xps/13-9370/default.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, ... }: +{ lib, ... }: { imports = [ diff --git a/dell/xps/13-9380/default.nix b/dell/xps/13-9380/default.nix index 162cc2618..5d74103b7 100644 --- a/dell/xps/13-9380/default.nix +++ b/dell/xps/13-9380/default.nix @@ -1,5 +1,3 @@ -{ lib, pkgs, ... }: - { imports = [ ../../../common/cpu/intel diff --git a/dell/xps/15-7590/default.nix b/dell/xps/15-7590/default.nix index e42cec301..98b087640 100644 --- a/dell/xps/15-7590/default.nix +++ b/dell/xps/15-7590/default.nix @@ -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"; diff --git a/dell/xps/15-9500/nvidia/default.nix b/dell/xps/15-9500/nvidia/default.nix index f2fa3ae71..257462a45 100644 --- a/dell/xps/15-9500/nvidia/default.nix +++ b/dell/xps/15-9500/nvidia/default.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, ... }: +{ lib, ... }: { imports = [ ../default.nix diff --git a/dell/xps/15-9550/nvidia/default.nix b/dell/xps/15-9550/nvidia/default.nix index f2fa3ae71..257462a45 100644 --- a/dell/xps/15-9550/nvidia/default.nix +++ b/dell/xps/15-9550/nvidia/default.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, ... }: +{ lib, ... }: { imports = [ ../default.nix diff --git a/dell/xps/15-9560/intel/default.nix b/dell/xps/15-9560/intel/default.nix index a45314970..c4d51ea67 100644 --- a/dell/xps/15-9560/intel/default.nix +++ b/dell/xps/15-9560/intel/default.nix @@ -1,5 +1,3 @@ -{ lib, pkgs, ... }: - { imports = [ ../../../../common/cpu/intel diff --git a/dell/xps/15-9560/nvidia/default.nix b/dell/xps/15-9560/nvidia/default.nix index 3e78ebac7..229a6efbe 100644 --- a/dell/xps/15-9560/nvidia/default.nix +++ b/dell/xps/15-9560/nvidia/default.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, ... }: +{ lib, ... }: { imports = [ diff --git a/dell/xps/17-9700/intel/default.nix b/dell/xps/17-9700/intel/default.nix index 0176bfde1..2adca86f0 100644 --- a/dell/xps/17-9700/intel/default.nix +++ b/dell/xps/17-9700/intel/default.nix @@ -1,5 +1,3 @@ -{ lib, pkgs, ... }: - { imports = [ ../../../../common/cpu/intel diff --git a/dell/xps/17-9700/nvidia/default.nix b/dell/xps/17-9700/nvidia/default.nix index 7e1e3e107..446a0b76d 100644 --- a/dell/xps/17-9700/nvidia/default.nix +++ b/dell/xps/17-9700/nvidia/default.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, ... }: +{ lib, ... }: { imports = [ diff --git a/flake.nix b/flake.nix index 0a006c98a..4c8f8543e 100644 --- a/flake.nix +++ b/flake.nix @@ -1,7 +1,7 @@ { description = "nixos-hardware"; - outputs = { self }: { + outputs = _: { nixosModules = { acer-aspire-4810t = import ./acer/aspire/4810t; airis-n990 = import ./airis/n990; diff --git a/hp/elitebook/2560p/default.nix b/hp/elitebook/2560p/default.nix index de34e1573..38e5d600a 100644 --- a/hp/elitebook/2560p/default.nix +++ b/hp/elitebook/2560p/default.nix @@ -1,8 +1,5 @@ -{ config, lib, pkgs, ... }: +{ config, lib, ... }: with lib; -let - xcfg = config.services.xserver; -in { imports = [ ../../../common/cpu/intel diff --git a/hp/elitebook/2560p/network.nix b/hp/elitebook/2560p/network.nix index 23c52844c..2fa94e965 100644 --- a/hp/elitebook/2560p/network.nix +++ b/hp/elitebook/2560p/network.nix @@ -1,4 +1,4 @@ -{ config, pkgs, lib, ... }: +{ config, lib, ... }: with lib; { config = { diff --git a/intel/nuc/8i7beh/default.nix b/intel/nuc/8i7beh/default.nix index 9cd9d4f63..5dfed4ef0 100644 --- a/intel/nuc/8i7beh/default.nix +++ b/intel/nuc/8i7beh/default.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, ... }: +{ lib, ... }: { imports = [ diff --git a/kobol/helios4/overlay.nix b/kobol/helios4/overlay.nix index 8453bb3c7..41aa9d98f 100644 --- a/kobol/helios4/overlay.nix +++ b/kobol/helios4/overlay.nix @@ -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 diff --git a/lenovo/ideapad/15arh05/default.nix b/lenovo/ideapad/15arh05/default.nix index fda5cd025..46dfd24ff 100644 --- a/lenovo/ideapad/15arh05/default.nix +++ b/lenovo/ideapad/15arh05/default.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, ... }: +{ lib, ... }: { imports = [ diff --git a/lenovo/ideapad/z510/default.nix b/lenovo/ideapad/z510/default.nix index 83f656806..d26ed0b06 100644 --- a/lenovo/ideapad/z510/default.nix +++ b/lenovo/ideapad/z510/default.nix @@ -1,5 +1,3 @@ -{ lib, ... }: - { imports = [ ../. diff --git a/lenovo/legion/15ach6/default.nix b/lenovo/legion/15ach6/default.nix index 0cbc0f433..3a03d6f1c 100644 --- a/lenovo/legion/15ach6/default.nix +++ b/lenovo/legion/15ach6/default.nix @@ -1,5 +1,6 @@ { lib, config, ... }: -let kernelPackages = config.boot.kernelPackages; +let + inherit (config.boot) kernelPackages; in { imports = [ ../../../common/cpu/amd diff --git a/lenovo/legion/15arh05h/default.nix b/lenovo/legion/15arh05h/default.nix index 603fd9e39..6ab02dc7b 100644 --- a/lenovo/legion/15arh05h/default.nix +++ b/lenovo/legion/15arh05h/default.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, ... }: +{ lib, ... }: { imports = [ diff --git a/lenovo/legion/16ach6h/edid/default.nix b/lenovo/legion/16ach6h/edid/default.nix index d9d8b5213..ec77c2441 100644 --- a/lenovo/legion/16ach6h/edid/default.nix +++ b/lenovo/legion/16ach6h/edid/default.nix @@ -1,4 +1,4 @@ -{ config, pkgs, lib, ...}: +{ pkgs, ...}: let # This file was obtained from the display while "DDG" mode was enabled. diff --git a/lenovo/legion/16ach6h/hybrid/default.nix b/lenovo/legion/16ach6h/hybrid/default.nix index 8a56a48d0..0deee0e6e 100644 --- a/lenovo/legion/16ach6h/hybrid/default.nix +++ b/lenovo/legion/16ach6h/hybrid/default.nix @@ -1,4 +1,4 @@ -{ config, lib, ... }: +{ lib, ... }: { imports = [ diff --git a/lenovo/legion/16ithg6/default.nix b/lenovo/legion/16ithg6/default.nix index cf0244eab..e0dca1eb3 100644 --- a/lenovo/legion/16ithg6/default.nix +++ b/lenovo/legion/16ithg6/default.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, ... }: +{ lib, ... }: { imports = [ diff --git a/lenovo/thinkpad/default.nix b/lenovo/thinkpad/default.nix index 99d4937e4..989f6a41a 100644 --- a/lenovo/thinkpad/default.nix +++ b/lenovo/thinkpad/default.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ config, lib, ... }: { imports = [ ../../common/pc/laptop ]; diff --git a/lenovo/thinkpad/e14/amd/default.nix b/lenovo/thinkpad/e14/amd/default.nix index d39c7d910..ff362d95d 100644 --- a/lenovo/thinkpad/e14/amd/default.nix +++ b/lenovo/thinkpad/e14/amd/default.nix @@ -1,5 +1,3 @@ -{ config, lib, pkgs, ... }: - { imports = [ ../. diff --git a/lenovo/thinkpad/e14/default.nix b/lenovo/thinkpad/e14/default.nix index 42bf01470..a073b58d8 100644 --- a/lenovo/thinkpad/e14/default.nix +++ b/lenovo/thinkpad/e14/default.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ ... }: { imports = [ diff --git a/lenovo/thinkpad/e14/intel/default.nix b/lenovo/thinkpad/e14/intel/default.nix index 088289f37..64d2f1779 100644 --- a/lenovo/thinkpad/e14/intel/default.nix +++ b/lenovo/thinkpad/e14/intel/default.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ lib, ... }: { imports = [ diff --git a/lenovo/thinkpad/e470/default.nix b/lenovo/thinkpad/e470/default.nix index e9c52141b..320073218 100644 --- a/lenovo/thinkpad/e470/default.nix +++ b/lenovo/thinkpad/e470/default.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ lib, pkgs, ... }: { imports = [ diff --git a/lenovo/thinkpad/e495/default.nix b/lenovo/thinkpad/e495/default.nix index 60f8efb3e..41c6b31dc 100644 --- a/lenovo/thinkpad/e495/default.nix +++ b/lenovo/thinkpad/e495/default.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ lib, pkgs, ... }: { imports = [ diff --git a/lenovo/thinkpad/l13/default.nix b/lenovo/thinkpad/l13/default.nix index 95308ab98..449756baf 100644 --- a/lenovo/thinkpad/l13/default.nix +++ b/lenovo/thinkpad/l13/default.nix @@ -1,4 +1,4 @@ -{ nixos, lib, pkgs, config, stdenv, ... }: +{ lib, ... }: { imports = [ ../../../common/cpu/intel diff --git a/lenovo/thinkpad/l13/yoga/default.nix b/lenovo/thinkpad/l13/yoga/default.nix index 3fb6f162d..8c41a412d 100644 --- a/lenovo/thinkpad/l13/yoga/default.nix +++ b/lenovo/thinkpad/l13/yoga/default.nix @@ -1,4 +1,4 @@ -{ nixos, lib, pkgs, config, stdenv, ... }: +{ lib, config, ... }: { imports = [ ../. diff --git a/lenovo/thinkpad/l14/amd/default.nix b/lenovo/thinkpad/l14/amd/default.nix index bb2162110..c21cbce93 100644 --- a/lenovo/thinkpad/l14/amd/default.nix +++ b/lenovo/thinkpad/l14/amd/default.nix @@ -1,5 +1,3 @@ -{ config, lib, pkgs, ... }: - { imports = [ ../. diff --git a/lenovo/thinkpad/l14/default.nix b/lenovo/thinkpad/l14/default.nix index 42bf01470..b3d031d42 100644 --- a/lenovo/thinkpad/l14/default.nix +++ b/lenovo/thinkpad/l14/default.nix @@ -1,5 +1,3 @@ -{ config, lib, pkgs, ... }: - { imports = [ ../. diff --git a/lenovo/thinkpad/l14/intel/default.nix b/lenovo/thinkpad/l14/intel/default.nix index 088289f37..64d2f1779 100644 --- a/lenovo/thinkpad/l14/intel/default.nix +++ b/lenovo/thinkpad/l14/intel/default.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ lib, ... }: { imports = [ diff --git a/lenovo/thinkpad/p1/3th-gen/nvidia.nix b/lenovo/thinkpad/p1/3th-gen/nvidia.nix index 62d9ebc5a..08081071d 100644 --- a/lenovo/thinkpad/p1/3th-gen/nvidia.nix +++ b/lenovo/thinkpad/p1/3th-gen/nvidia.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, ... }: +{ lib, ... }: { hardware.nvidia.modesetting.enable = true; hardware.opengl.driSupport32Bit = true; diff --git a/lenovo/thinkpad/p14s/amd/gen2/default.nix b/lenovo/thinkpad/p14s/amd/gen2/default.nix index 8f0e257b7..c80a70306 100644 --- a/lenovo/thinkpad/p14s/amd/gen2/default.nix +++ b/lenovo/thinkpad/p14s/amd/gen2/default.nix @@ -1,5 +1,5 @@ -{ config, lib, pkgs, ... }: +{ lib, pkgs, ... }: { imports = [ diff --git a/lenovo/thinkpad/p16s/amd/gen1/default.nix b/lenovo/thinkpad/p16s/amd/gen1/default.nix index 5b7bfe4e4..1cf174858 100644 --- a/lenovo/thinkpad/p16s/amd/gen1/default.nix +++ b/lenovo/thinkpad/p16s/amd/gen1/default.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ lib, pkgs, ... }: { # For mainline support of rtw89 wireless networking diff --git a/lenovo/thinkpad/p53/default.nix b/lenovo/thinkpad/p53/default.nix index a499d5c2d..84e60fab8 100644 --- a/lenovo/thinkpad/p53/default.nix +++ b/lenovo/thinkpad/p53/default.nix @@ -1,4 +1,4 @@ -{ nixos, pkgs, lib, config, stdenv, ... }: +{ lib, ... }: { imports = [ ../../../common/cpu/intel diff --git a/lenovo/thinkpad/t14/amd/default.nix b/lenovo/thinkpad/t14/amd/default.nix index fbd9f204d..cbef7c0be 100644 --- a/lenovo/thinkpad/t14/amd/default.nix +++ b/lenovo/thinkpad/t14/amd/default.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ lib, pkgs, ... }: { imports = [ diff --git a/lenovo/thinkpad/t14/amd/gen1/default.nix b/lenovo/thinkpad/t14/amd/gen1/default.nix index cb1ec7d81..665d3d41b 100644 --- a/lenovo/thinkpad/t14/amd/gen1/default.nix +++ b/lenovo/thinkpad/t14/amd/gen1/default.nix @@ -1,6 +1,3 @@ - -{ config, lib, pkgs, ... }: - { imports = [ ../. diff --git a/lenovo/thinkpad/t14/amd/gen2/default.nix b/lenovo/thinkpad/t14/amd/gen2/default.nix index 367e3988c..795b9a81e 100644 --- a/lenovo/thinkpad/t14/amd/gen2/default.nix +++ b/lenovo/thinkpad/t14/amd/gen2/default.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ lib, pkgs, ... }: { imports = [ diff --git a/lenovo/thinkpad/t14/amd/gen3/default.nix b/lenovo/thinkpad/t14/amd/gen3/default.nix index 56578984a..617a3a43d 100644 --- a/lenovo/thinkpad/t14/amd/gen3/default.nix +++ b/lenovo/thinkpad/t14/amd/gen3/default.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ lib, pkgs, ... }: { imports = [ diff --git a/lenovo/thinkpad/t14/default.nix b/lenovo/thinkpad/t14/default.nix index 18802e6e6..3466e95db 100644 --- a/lenovo/thinkpad/t14/default.nix +++ b/lenovo/thinkpad/t14/default.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ lib, pkgs, ... }: { imports = [ diff --git a/lenovo/thinkpad/t14s/amd/default.nix b/lenovo/thinkpad/t14s/amd/default.nix index fbd9f204d..cbef7c0be 100644 --- a/lenovo/thinkpad/t14s/amd/default.nix +++ b/lenovo/thinkpad/t14s/amd/default.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ lib, pkgs, ... }: { imports = [ diff --git a/lenovo/thinkpad/t14s/amd/gen1/default.nix b/lenovo/thinkpad/t14s/amd/gen1/default.nix index 13dc790dd..9dd565d9f 100644 --- a/lenovo/thinkpad/t14s/amd/gen1/default.nix +++ b/lenovo/thinkpad/t14s/amd/gen1/default.nix @@ -1,5 +1,5 @@ -{ config, lib, pkgs, ... }: +{ lib, pkgs, ... }: { imports = [ diff --git a/lenovo/thinkpad/t14s/default.nix b/lenovo/thinkpad/t14s/default.nix index d783b21a8..182071a7b 100644 --- a/lenovo/thinkpad/t14s/default.nix +++ b/lenovo/thinkpad/t14s/default.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ lib, pkgs, ... }: { imports = [ diff --git a/lenovo/thinkpad/t410/default.nix b/lenovo/thinkpad/t410/default.nix index c40801ffc..9cb15b3db 100644 --- a/lenovo/thinkpad/t410/default.nix +++ b/lenovo/thinkpad/t410/default.nix @@ -1,5 +1,3 @@ -{ config, lib, pkgs, ... }: - { imports = [ ../. diff --git a/lenovo/thinkpad/t420/default.nix b/lenovo/thinkpad/t420/default.nix index be05d1ec1..a3c7db40e 100644 --- a/lenovo/thinkpad/t420/default.nix +++ b/lenovo/thinkpad/t420/default.nix @@ -1,5 +1,3 @@ -{ config, lib, pkgs, ... }: - { imports = [ ../. diff --git a/lenovo/thinkpad/t430/default.nix b/lenovo/thinkpad/t430/default.nix index 9c5580efc..47f2d6b9e 100644 --- a/lenovo/thinkpad/t430/default.nix +++ b/lenovo/thinkpad/t430/default.nix @@ -1,5 +1,3 @@ -{ config, lib, pkgs, ... }: - { imports = [ ../. diff --git a/lenovo/thinkpad/t440p/default.nix b/lenovo/thinkpad/t440p/default.nix index 4dd408579..53a93c218 100644 --- a/lenovo/thinkpad/t440p/default.nix +++ b/lenovo/thinkpad/t440p/default.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ lib, ... }: { imports = [ diff --git a/lenovo/thinkpad/t440s/default.nix b/lenovo/thinkpad/t440s/default.nix index c40ad90f9..ccfa9e55b 100644 --- a/lenovo/thinkpad/t440s/default.nix +++ b/lenovo/thinkpad/t440s/default.nix @@ -1,5 +1,3 @@ -{ config, lib, pkgs, ... }: - { imports = [ ../. diff --git a/lenovo/thinkpad/t450s/default.nix b/lenovo/thinkpad/t450s/default.nix index e62337171..548f6881e 100644 --- a/lenovo/thinkpad/t450s/default.nix +++ b/lenovo/thinkpad/t450s/default.nix @@ -1,5 +1,3 @@ -{ config, lib, pkgs, ... }: - { imports = [ ../../../common/cpu/intel diff --git a/lenovo/thinkpad/t460/default.nix b/lenovo/thinkpad/t460/default.nix index e62337171..548f6881e 100644 --- a/lenovo/thinkpad/t460/default.nix +++ b/lenovo/thinkpad/t460/default.nix @@ -1,5 +1,3 @@ -{ config, lib, pkgs, ... }: - { imports = [ ../../../common/cpu/intel diff --git a/lenovo/thinkpad/t460p/default.nix b/lenovo/thinkpad/t460p/default.nix index e62337171..548f6881e 100644 --- a/lenovo/thinkpad/t460p/default.nix +++ b/lenovo/thinkpad/t460p/default.nix @@ -1,5 +1,3 @@ -{ config, lib, pkgs, ... }: - { imports = [ ../../../common/cpu/intel diff --git a/lenovo/thinkpad/t460s/default.nix b/lenovo/thinkpad/t460s/default.nix index e62337171..548f6881e 100644 --- a/lenovo/thinkpad/t460s/default.nix +++ b/lenovo/thinkpad/t460s/default.nix @@ -1,5 +1,3 @@ -{ config, lib, pkgs, ... }: - { imports = [ ../../../common/cpu/intel diff --git a/lenovo/thinkpad/t470s/default.nix b/lenovo/thinkpad/t470s/default.nix index e62337171..548f6881e 100644 --- a/lenovo/thinkpad/t470s/default.nix +++ b/lenovo/thinkpad/t470s/default.nix @@ -1,5 +1,3 @@ -{ config, lib, pkgs, ... }: - { imports = [ ../../../common/cpu/intel diff --git a/lenovo/thinkpad/t480/default.nix b/lenovo/thinkpad/t480/default.nix index 6cefeaaba..bfca9122a 100644 --- a/lenovo/thinkpad/t480/default.nix +++ b/lenovo/thinkpad/t480/default.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ lib, ... }: { imports = [ diff --git a/lenovo/thinkpad/t480s/default.nix b/lenovo/thinkpad/t480s/default.nix index 6cefeaaba..bfca9122a 100644 --- a/lenovo/thinkpad/t480s/default.nix +++ b/lenovo/thinkpad/t480s/default.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ lib, ... }: { imports = [ diff --git a/lenovo/thinkpad/t490/default.nix b/lenovo/thinkpad/t490/default.nix index 3578da66c..c20d21368 100644 --- a/lenovo/thinkpad/t490/default.nix +++ b/lenovo/thinkpad/t490/default.nix @@ -1,4 +1,4 @@ -{ nixos, lib, pkgs, config, stdenv, ... }: +{ lib, ... }: { imports = [ ../../../common/cpu/intel diff --git a/lenovo/thinkpad/t495/default.nix b/lenovo/thinkpad/t495/default.nix index 64957e6e0..ef5081347 100644 --- a/lenovo/thinkpad/t495/default.nix +++ b/lenovo/thinkpad/t495/default.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ lib, pkgs, ... }: { imports = [ diff --git a/lenovo/thinkpad/t550/default.nix b/lenovo/thinkpad/t550/default.nix index e62337171..548f6881e 100644 --- a/lenovo/thinkpad/t550/default.nix +++ b/lenovo/thinkpad/t550/default.nix @@ -1,5 +1,3 @@ -{ config, lib, pkgs, ... }: - { imports = [ ../../../common/cpu/intel diff --git a/lenovo/thinkpad/t590/default.nix b/lenovo/thinkpad/t590/default.nix index 6a4cc7b8a..3beea72ec 100644 --- a/lenovo/thinkpad/t590/default.nix +++ b/lenovo/thinkpad/t590/default.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ lib, ... }: { imports = [ diff --git a/lenovo/thinkpad/x1-extreme/gen2/default.nix b/lenovo/thinkpad/x1-extreme/gen2/default.nix index 6b0ebbd5d..17147b537 100644 --- a/lenovo/thinkpad/x1-extreme/gen2/default.nix +++ b/lenovo/thinkpad/x1-extreme/gen2/default.nix @@ -19,7 +19,7 @@ with lib; hardware.bumblebee.connectDisplay = true; nixpkgs.overlays = [ - (self: super: { + (_self: super: { bumblebee = super.bumblebee.override { extraNvidiaDeviceOptions = '' Option "AllowEmptyInitialConfiguration" diff --git a/lenovo/thinkpad/x1-extreme/gen4/default.nix b/lenovo/thinkpad/x1-extreme/gen4/default.nix index f52fe1ecc..0c8cf191f 100644 --- a/lenovo/thinkpad/x1-extreme/gen4/default.nix +++ b/lenovo/thinkpad/x1-extreme/gen4/default.nix @@ -1,4 +1,4 @@ -{ config, lib, ... }: +{ lib, ... }: { imports = [ diff --git a/lenovo/thinkpad/x1/10th-gen/default.nix b/lenovo/thinkpad/x1/10th-gen/default.nix index c06e83953..75a23d850 100644 --- a/lenovo/thinkpad/x1/10th-gen/default.nix +++ b/lenovo/thinkpad/x1/10th-gen/default.nix @@ -1,4 +1,3 @@ -{ lib, pkgs, ... }: { imports = [ ../. diff --git a/lenovo/thinkpad/x1/6th-gen/QHD/default.nix b/lenovo/thinkpad/x1/6th-gen/QHD/default.nix index b6495ea11..84d7f7152 100644 --- a/lenovo/thinkpad/x1/6th-gen/QHD/default.nix +++ b/lenovo/thinkpad/x1/6th-gen/QHD/default.nix @@ -1,6 +1,4 @@ # X1 6th generation with a QHD (2560x1440px) display -{ config, lib, pkgs, ... }: - { imports = [ ../. diff --git a/lenovo/thinkpad/x1/6th-gen/default.nix b/lenovo/thinkpad/x1/6th-gen/default.nix index b244e9705..24fe67613 100644 --- a/lenovo/thinkpad/x1/6th-gen/default.nix +++ b/lenovo/thinkpad/x1/6th-gen/default.nix @@ -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 = [ ../. diff --git a/lenovo/thinkpad/x13/default.nix b/lenovo/thinkpad/x13/default.nix index 88c94185c..911dc5b0c 100644 --- a/lenovo/thinkpad/x13/default.nix +++ b/lenovo/thinkpad/x13/default.nix @@ -1,4 +1,4 @@ -{ config, lib, ... }: { +{ ... }: { # Reference to hardware: https://certification.ubuntu.com/hardware/202004-27844 imports = [ ../. diff --git a/lenovo/thinkpad/x140e/default.nix b/lenovo/thinkpad/x140e/default.nix index c03410e93..fbc6df920 100644 --- a/lenovo/thinkpad/x140e/default.nix +++ b/lenovo/thinkpad/x140e/default.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ lib, ... }: { imports = [ diff --git a/lenovo/thinkpad/x200s/default.nix b/lenovo/thinkpad/x200s/default.nix index 5a637d632..1a6d40eb7 100644 --- a/lenovo/thinkpad/x200s/default.nix +++ b/lenovo/thinkpad/x200s/default.nix @@ -1,5 +1,3 @@ -{ config, lib, pkgs, ... }: - { imports = [ ../. diff --git a/lenovo/thinkpad/x220/default.nix b/lenovo/thinkpad/x220/default.nix index b28e27845..ec8b45c94 100644 --- a/lenovo/thinkpad/x220/default.nix +++ b/lenovo/thinkpad/x220/default.nix @@ -1,5 +1,3 @@ -{ config, lib, pkgs, ... }: - { imports = [ ../. diff --git a/lenovo/thinkpad/x230/default.nix b/lenovo/thinkpad/x230/default.nix index 418b68c85..995bb4492 100644 --- a/lenovo/thinkpad/x230/default.nix +++ b/lenovo/thinkpad/x230/default.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ lib, ... }: { imports = [ diff --git a/lenovo/thinkpad/x280/default.nix b/lenovo/thinkpad/x280/default.nix index a9423e547..880458e78 100644 --- a/lenovo/thinkpad/x280/default.nix +++ b/lenovo/thinkpad/x280/default.nix @@ -1,4 +1,4 @@ -{ config, pkgs, lib, ... }: +{ lib, ... }: { imports = [ diff --git a/lenovo/thinkpad/yoga.nix b/lenovo/thinkpad/yoga.nix index c624e1b60..559d3272d 100644 --- a/lenovo/thinkpad/yoga.nix +++ b/lenovo/thinkpad/yoga.nix @@ -1,5 +1,3 @@ -{ config, lib, pkgs, ... }: - { # automatic screen orientation hardware.sensor.iio.enable = true; diff --git a/lenovo/thinkpad/z/default.nix b/lenovo/thinkpad/z/default.nix index e1cf6b20d..b3c8be1b7 100644 --- a/lenovo/thinkpad/z/default.nix +++ b/lenovo/thinkpad/z/default.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: { +{ lib, pkgs, ... }: { imports = [ ../../../lenovo/thinkpad ../../../common/cpu/amd diff --git a/lenovo/thinkpad/z/z13/default.nix b/lenovo/thinkpad/z/z13/default.nix index b351777f2..cf1a5b488 100644 --- a/lenovo/thinkpad/z/z13/default.nix +++ b/lenovo/thinkpad/z/z13/default.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: { +{ imports = [ ../../../../lenovo/thinkpad/z ]; diff --git a/microsoft/surface-pro/3/default.nix b/microsoft/surface-pro/3/default.nix index 4fa8f79a4..7e80d1d93 100644 --- a/microsoft/surface-pro/3/default.nix +++ b/microsoft/surface-pro/3/default.nix @@ -1,4 +1,3 @@ -{ lib, ... }: { imports = [ ../../surface ]; } diff --git a/microsoft/surface/default.nix b/microsoft/surface/default.nix index 9a59e9ff6..2952daed6 100644 --- a/microsoft/surface/default.nix +++ b/microsoft/surface/default.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ lib, pkgs, ... }: let inherit (lib) mkDefault; diff --git a/microsoft/surface/firmware/surface-go/ath10k/ath10k-replace.nix b/microsoft/surface/firmware/surface-go/ath10k/ath10k-replace.nix index e62307d0d..e6b84e1f1 100644 --- a/microsoft/surface/firmware/surface-go/ath10k/ath10k-replace.nix +++ b/microsoft/surface/firmware/surface-go/ath10k/ath10k-replace.nix @@ -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 { diff --git a/microsoft/surface/kernel/default.nix b/microsoft/surface/kernel/default.nix index 4fc495f06..6eba2ca8b 100644 --- a/microsoft/surface/kernel/default.nix +++ b/microsoft/surface/kernel/default.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ lib, ... }: let inherit (lib) mkOption types; diff --git a/microsoft/surface/kernel/linux-package.nix b/microsoft/surface/kernel/linux-package.nix index 4858e4f51..c115df107 100644 --- a/microsoft/surface/kernel/linux-package.nix +++ b/microsoft/surface/kernel/linux-package.nix @@ -1,12 +1,11 @@ { lib, buildLinux, callPackage, - fetchurl, linuxPackagesFor, }: let - inherit (lib) kernel recurseIntoAttrs; + inherit (lib) recurseIntoAttrs; in { repos = callPackage ../repos.nix {}; diff --git a/microsoft/surface/repos.nix b/microsoft/surface/repos.nix index 0e58c0c19..b15dd7ec8 100644 --- a/microsoft/surface/repos.nix +++ b/microsoft/surface/repos.nix @@ -1,4 +1,4 @@ -{ fetchFromGitHub, fetchurl }: +{ fetchFromGitHub }: { linux-surface = fetchFromGitHub { diff --git a/msi/gl62/default.nix b/msi/gl62/default.nix index 6f3f91cbb..049ffcfb7 100644 --- a/msi/gl62/default.nix +++ b/msi/gl62/default.nix @@ -1,4 +1,4 @@ -{ config, lib, ... }: +{ lib, ... }: { imports = [ diff --git a/msi/gs60/default.nix b/msi/gs60/default.nix index 4bc34ef13..70d608b7b 100644 --- a/msi/gs60/default.nix +++ b/msi/gs60/default.nix @@ -1,4 +1,4 @@ -{ config, pkgs, lib, ... }: +{ pkgs, ... }: { imports = [ ../../common/cpu/intel diff --git a/onenetbook/4/goodix-stylus-mastykin/default.nix b/onenetbook/4/goodix-stylus-mastykin/default.nix index 2c12ca676..2329073b0 100644 --- a/onenetbook/4/goodix-stylus-mastykin/default.nix +++ b/onenetbook/4/goodix-stylus-mastykin/default.nix @@ -22,7 +22,7 @@ let in stdenv.mkDerivation rec { name = "hid-multitouch-onenetbook4-${version}"; - version = kernel.version; + inherit (kernel) version; hardeningDisable = [ "pic" "format" ]; nativeBuildInputs = kernel.moduleBuildDependencies; diff --git a/pine64/pinebook-pro/default.nix b/pine64/pinebook-pro/default.nix index ca83f0975..ea77ad33e 100644 --- a/pine64/pinebook-pro/default.nix +++ b/pine64/pinebook-pro/default.nix @@ -1,5 +1,5 @@ # This configuration file can be safely imported in your system configuration. -{ config, pkgs, lib, ... }: +{ pkgs, lib, ... }: { nixpkgs.overlays = [ diff --git a/pine64/pinebook-pro/overlay.nix b/pine64/pinebook-pro/overlay.nix index 8d140f022..be45573ea 100644 --- a/pine64/pinebook-pro/overlay.nix +++ b/pine64/pinebook-pro/overlay.nix @@ -1,4 +1,4 @@ -final: super: +final: _super: let inherit (final) callPackage; diff --git a/raspberry-pi/4/apply-overlays-dtmerge.nix b/raspberry-pi/4/apply-overlays-dtmerge.nix index 72830295a..849950325 100644 --- a/raspberry-pi/4/apply-overlays-dtmerge.nix +++ b/raspberry-pi/4/apply-overlays-dtmerge.nix @@ -1,6 +1,6 @@ # modification of nixpkgs deviceTree.applyOverlays to resolve https://github.com/NixOS/nixpkgs/issues/125354 # derived from https://github.com/NixOS/nixpkgs/blob/916ca8f2b0c208def051f8ea9760c534a40309db/pkgs/os-specific/linux/device-tree/default.nix -{ lib, pkgs, stdenvNoCC, dtc, libraspberrypi }: +{ lib, stdenvNoCC, dtc, libraspberrypi }: with lib; (base: overlays': stdenvNoCC.mkDerivation { name = "device-tree-overlays"; diff --git a/raspberry-pi/4/cpu-revision.nix b/raspberry-pi/4/cpu-revision.nix index 8ac2c551d..54db83af8 100644 --- a/raspberry-pi/4/cpu-revision.nix +++ b/raspberry-pi/4/cpu-revision.nix @@ -1,4 +1,3 @@ -{ ... }: { hardware.deviceTree.overlays = [ { diff --git a/raspberry-pi/4/dwc2.nix b/raspberry-pi/4/dwc2.nix index 4ee309118..bdb63b18d 100644 --- a/raspberry-pi/4/dwc2.nix +++ b/raspberry-pi/4/dwc2.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ config, lib, ... }: let cfg = config.hardware.raspberry-pi."4".dwc2; diff --git a/raspberry-pi/4/i2c.nix b/raspberry-pi/4/i2c.nix index 786581ee6..0355397e0 100644 --- a/raspberry-pi/4/i2c.nix +++ b/raspberry-pi/4/i2c.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ config, lib, ... }: let cfg = config.hardware.raspberry-pi."4"; @@ -57,7 +57,7 @@ in overlays = [ (simple-overlay { target = "i2c0if"; status = "okay"; - frequency = cfg.i2c0.frequency; + inherit (cfg.i2c0) frequency; }) ]; }; }) @@ -67,7 +67,7 @@ in overlays = [ (simple-overlay { target = "i2c1"; status = "okay"; - frequency = cfg.i2c1.frequency; + inherit (cfg.i2c1) frequency; }) ]; }; }) diff --git a/raspberry-pi/4/modesetting.nix b/raspberry-pi/4/modesetting.nix index 8151f9311..b1f734b35 100644 --- a/raspberry-pi/4/modesetting.nix +++ b/raspberry-pi/4/modesetting.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ config, lib, ... }: let cfg = config.hardware.raspberry-pi."4".fkms-3d; diff --git a/raspberry-pi/4/pkgs-overlays.nix b/raspberry-pi/4/pkgs-overlays.nix index 71db89f6e..cc639d46f 100644 --- a/raspberry-pi/4/pkgs-overlays.nix +++ b/raspberry-pi/4/pkgs-overlays.nix @@ -1,9 +1,9 @@ -{ config, lib, pkgs, modulesPath, ... }: +{ config, lib, ... }: let cfg = config.hardware.raspberry-pi."4".apply-overlays-dtmerge; - dt_ao_overlay = (final: prev: { - deviceTree.applyOverlays = (prev.callPackage ./apply-overlays-dtmerge.nix { }); - }); + dt_ao_overlay = _final: prev: { + deviceTree.applyOverlays = prev.callPackage ./apply-overlays-dtmerge.nix { }; + }; in { options.hardware = { raspberry-pi."4".apply-overlays-dtmerge = { diff --git a/raspberry-pi/4/poe-hat.nix b/raspberry-pi/4/poe-hat.nix index bda99252c..6759f42f6 100644 --- a/raspberry-pi/4/poe-hat.nix +++ b/raspberry-pi/4/poe-hat.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ config, lib, ... }: let cfg = config.hardware.raspberry-pi."4".poe-hat; diff --git a/raspberry-pi/4/poe-plus-hat.nix b/raspberry-pi/4/poe-plus-hat.nix index 79177fed9..e0627b699 100644 --- a/raspberry-pi/4/poe-plus-hat.nix +++ b/raspberry-pi/4/poe-plus-hat.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ config, lib, ... }: let cfg = config.hardware.raspberry-pi."4".poe-plus-hat; diff --git a/raspberry-pi/4/pwm0.nix b/raspberry-pi/4/pwm0.nix index 37ae3a1f5..5470eaf49 100644 --- a/raspberry-pi/4/pwm0.nix +++ b/raspberry-pi/4/pwm0.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ config, lib, ... }: let cfg = config.hardware.raspberry-pi."4".pwm0; diff --git a/supermicro/a1sri-2758f/default.nix b/supermicro/a1sri-2758f/default.nix index 10ea2af45..3dfc3a7c8 100644 --- a/supermicro/a1sri-2758f/default.nix +++ b/supermicro/a1sri-2758f/default.nix @@ -1,8 +1,5 @@ # http://www.supermicro.com/products/motherboard/Atom/X10/A1SRi-2758F.cfm # This board contains a TPM header, but you must supply your own module. - -{ pkgs, ... }: - { imports = [ ../. ]; } diff --git a/supermicro/x10sll-f/default.nix b/supermicro/x10sll-f/default.nix index 86bc1be3a..c02005108 100644 --- a/supermicro/x10sll-f/default.nix +++ b/supermicro/x10sll-f/default.nix @@ -1,5 +1,3 @@ -{ config, pkgs, ... }: - { imports = [ ../. diff --git a/system76/default.nix b/system76/default.nix index 8a881c04c..b2605cc8d 100644 --- a/system76/default.nix +++ b/system76/default.nix @@ -2,7 +2,7 @@ # # https://system76.com/ -{ config, lib, ... }: +{ lib, ... }: { imports = [ ../common/pc ]; diff --git a/toshiba/swanky/default.nix b/toshiba/swanky/default.nix index 2f5528022..32e3b126f 100644 --- a/toshiba/swanky/default.nix +++ b/toshiba/swanky/default.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, ... }: +{ pkgs, ... }: let ucm = pkgs.fetchzip { @@ -20,7 +20,7 @@ in system.replaceRuntimeDependencies = [{ original = pkgs.alsa-lib; - replacement = pkgs.alsa-lib.overrideAttrs (super: { + replacement = pkgs.alsa-lib.overrideAttrs (_super: { postFixup = "cp -r ${ucm}/chtmax98090 $out/share/alsa/ucm"; }); }];