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, ... }:
{ 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
];