Skip to content

Commit

Permalink
remove unused variables with deadnix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 authored and mergify[bot] committed Dec 25, 2023
1 parent 249a94e commit b7747f0
Show file tree
Hide file tree
Showing 28 changed files with 20 additions and 39 deletions.
2 changes: 1 addition & 1 deletion apple/macbook-air/6/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 common/gpu/nvidia/prime.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, pkgs, config, ... }:
{ lib, config, ... }:

{
imports = [ ./. ];
Expand Down
2 changes: 0 additions & 2 deletions dell/precision/3541/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/13-9333/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, pkgs, ... }: {
{
imports = [
../../../common/cpu/intel
../../../common/pc/laptop
Expand Down
1 change: 0 additions & 1 deletion friendlyarm/nanopi-r5s/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{ lib
, pkgs
, ...
}:

Expand Down
2 changes: 1 addition & 1 deletion gpd/win-2/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ...}:
{ config, lib, ...}:
{
imports = [
../../common/cpu/intel
Expand Down
5 changes: 1 addition & 4 deletions gpd/win-max-2/2023/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{ config, lib, pkgs, ...}:
{ config, lib, ...}:
with lib;
let
cfg = config.hardware.gpd.ppt;
in
{
imports = [
./..
Expand Down
2 changes: 0 additions & 2 deletions hardkernel/odroid-h3/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{ config, lib, ... }:

{
imports = [
../../common/cpu/intel/jasper-lake
Expand Down
2 changes: 1 addition & 1 deletion hp/elitebook/845/g7/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ pkgs, lib, ... }:

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

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

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

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

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

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

{
nixpkgs.overlays = [
(import ./overlay.nix)
Expand Down
2 changes: 1 addition & 1 deletion morefine/m600/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, pkgs, ...}: {
{ lib, ...}: {
imports = [
../../common/cpu/amd
../../common/cpu/amd/pstate.nix
Expand Down
2 changes: 1 addition & 1 deletion olimex/teres_i/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ...}:
{ lib, pkgs, ...}:

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

{
imports = [
Expand Down
2 changes: 1 addition & 1 deletion pine64/rockpro64/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ pkgs, lib, ... }:
{ lib, ... }:
{
boot.initrd.kernelModules = [
# PCIe/NVMe
Expand Down
2 changes: 1 addition & 1 deletion pine64/star64/firmware.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ callPackage, pkgsBuildHost, runCommand, writeText, writeShellApplication
{ callPackage, pkgsBuildHost, writeText, writeShellApplication
, stdenv, dtc, mtdutils, coreutils }:
let
uboot = callPackage ./uboot.nix { };
Expand Down
2 changes: 1 addition & 1 deletion pine64/star64/sd-image.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, pkgs, lib, modulesPath, ... }:
{ config, pkgs, modulesPath, ... }:

let firmware = pkgs.callPackage ./firmware.nix { };
in {
Expand Down
2 changes: 1 addition & 1 deletion purism/librem/5r4/initrd.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, lib, ... }:
lib.mkIf config.hardware.librem5.customInitrdModules {
boot.initrd = {
kernelModules = [
Expand Down
2 changes: 1 addition & 1 deletion purism/librem/5r4/u-boot/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, gcc11Stdenv, buildUBoot, fetchurl, fetchFromGitLab, lib, flex, bison }:
{ stdenv, gcc11Stdenv, buildUBoot, fetchurl, fetchFromGitLab, lib, bison }:
let
firmware-imx = stdenv.mkDerivation (fa: {
pname = "firmware-imx";
Expand Down
2 changes: 1 addition & 1 deletion purism/librem/5r4/wifi.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, lib, ... }:
lib.mkIf (config.hardware.librem5.wifiCard == "redpine") {
# Disable mainline rsi module
boot.blacklistedKernelModules = [
Expand Down
2 changes: 1 addition & 1 deletion starfive/visionfive/v2/firmware.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ callPackage, pkgsBuildHost, runCommand, writeText, writeShellApplication
{ callPackage, pkgsBuildHost, writeText, writeShellApplication
, stdenv, dtc, mtdutils, coreutils }:
let
uboot = callPackage ./uboot.nix { };
Expand Down
2 changes: 1 addition & 1 deletion starfive/visionfive/v2/sd-image.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, pkgs, lib, modulesPath, ... }:
{ config, pkgs, modulesPath, ... }:

let firmware = pkgs.callPackage ./firmware.nix { };
in {
Expand Down

0 comments on commit b7747f0

Please sign in to comment.