diff --git a/airis/n990/default.nix b/airis/n990/default.nix index ae06813..e471141 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 4d31b1c..3703096 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 434e8e7..81eda9b 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 4561684..6b1fd74 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 b49a44c..b981aef 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 f48b036..c30f0c5 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 966505f..5c1663f 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 c6516af..72e89c2 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 869badb..0967ef4 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 3334a74..102da6b 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 80deb29..83216eb 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 c7cf888..d50b024 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 86be458..7f6116a 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 f53ba08..6ad4330 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 a7d737b..b69fd5c 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 a368f44..9bed243 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 05e1d4a..24071f0 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 9c379ae..148b6f9 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 f40f6e0..f1ea378 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 dbe852f..10362b3 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 162cc26..5d74103 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 e42cec3..98b0876 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 f2fa3ae..257462a 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 f2fa3ae..257462a 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 a453149..c4d51ea 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 3e78eba..229a6ef 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 0176bfd..2adca86 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 7e1e3e1..446a0b7 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 0a006c9..4c8f854 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 de34e15..38e5d60 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 23c5284..2fa94e9 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 9cd9d4f..5dfed4e 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 8453bb3..41aa9d9 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 fda5cd0..46dfd24 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 83f6568..d26ed0b 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 0cbc0f4..3a03d6f 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 603fd9e..6ab02dc 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 d9d8b52..ec77c24 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 8a56a48..0deee0e 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 cf0244e..e0dca1e 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 99d4937..989f6a4 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 d39c7d9..ff362d9 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 42bf014..a073b58 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 088289f..64d2f17 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 e9c5214..3200732 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 60f8efb..41c6b31 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 95308ab..449756b 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 3fb6f16..8c41a41 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 bb21621..c21cbce 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 42bf014..b3d031d 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 088289f..64d2f17 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 62d9ebc..0808107 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 8f0e257..c80a703 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 5b7bfe4..1cf1748 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 a499d5c..84e60fa 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 fbd9f20..cbef7c0 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 cb1ec7d..665d3d4 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 367e398..795b9a8 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 5657898..617a3a4 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 18802e6..3466e95 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 fbd9f20..cbef7c0 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 13dc790..9dd565d 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 d783b21..182071a 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 c40801f..9cb15b3 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 be05d1e..a3c7db4 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 9c5580e..47f2d6b 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 4dd4085..53a93c2 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 c40ad90..ccfa9e5 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 e623371..548f688 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 e623371..548f688 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 e623371..548f688 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 e623371..548f688 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 e623371..548f688 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 6cefeaa..bfca912 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 6cefeaa..bfca912 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 3578da6..c20d213 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 64957e6..ef50813 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 e623371..548f688 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 6a4cc7b..3beea72 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 6b0ebbd..17147b5 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 f52fe1e..0c8cf19 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 c06e839..75a23d8 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 b6495ea..84d7f71 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 b244e97..24fe676 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 88c9418..911dc5b 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 c03410e..fbc6df9 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 5a637d6..1a6d40e 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 b28e278..ec8b45c 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 418b68c..995bb44 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 a9423e5..880458e 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 c624e1b..559d327 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 e1cf6b2..b3c8be1 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 b351777..cf1a5b4 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 4fa8f79..7e80d1d 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 9a59e9f..2952dae 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 e62307d..e6b84e1 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 4fc495f..6eba2ca 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 4858e4f..c115df1 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 0e58c0c..b15dd7e 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 6f3f91c..049ffcf 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 4bc34ef..70d608b 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 2c12ca6..2329073 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 ca83f09..ea77ad3 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 8d140f0..be45573 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 7283029..8499503 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 8ac2c55..54db83a 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 4ee3091..bdb63b1 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 786581e..0355397 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 8151f93..b1f734b 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 71db89f..cc639d4 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 bda9925..6759f42 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 79177fe..e0627b6 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 37ae3a1..5470eaf 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 10ea2af..3dfc3a7 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 86bc1be..c020051 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 8a881c0..b2605cc 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 2f55280..32e3b12 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"; }); }];