remove unused variables with deadnix

This commit is contained in:
Jörg Thalheim 2023-12-25 21:14:17 +01:00 committed by mergify[bot]
parent 249a94e715
commit b7747f0f60
28 changed files with 20 additions and 39 deletions

View file

@ -1,4 +1,4 @@
{ config, lib, ... }: { lib, ... }:
{ {
imports = [ ../. ]; imports = [ ../. ];

View file

@ -1,4 +1,4 @@
{ lib, pkgs, config, ... }: { lib, config, ... }:
{ {
imports = [ ./. ]; imports = [ ./. ];

View file

@ -1,5 +1,3 @@
{ lib, pkgs, ... }:
{ {
imports = [ imports = [
../../../../common/cpu/intel ../../../../common/cpu/intel

View file

@ -1,4 +1,4 @@
{ lib, pkgs, ... }: { {
imports = [ imports = [
../../../common/cpu/intel ../../../common/cpu/intel
../../../common/pc/laptop ../../../common/pc/laptop

View file

@ -1,5 +1,4 @@
{ lib { lib
, pkgs
, ... , ...
}: }:

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ...}: { config, lib, ...}:
{ {
imports = [ imports = [
../../common/cpu/intel ../../common/cpu/intel

View file

@ -1,8 +1,5 @@
{ config, lib, pkgs, ...}: { config, lib, ...}:
with lib; with lib;
let
cfg = config.hardware.gpd.ppt;
in
{ {
imports = [ imports = [
./.. ./..

View file

@ -1,5 +1,3 @@
{ config, lib, ... }:
{ {
imports = [ imports = [
../../common/cpu/intel/jasper-lake ../../common/cpu/intel/jasper-lake

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }: { pkgs, lib, ... }:
{ {
imports = imports =

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }: { pkgs, lib, ... }:
{ {
imports = imports =

View file

@ -1,5 +1,3 @@
{ lib, ... }:
{ {
imports = [ imports = [
../../../common/cpu/amd ../../../common/cpu/amd

View file

@ -1,5 +1,3 @@
{ lib, ... }:
{ {
imports = [ imports = [
../../../common/cpu/amd ../../../common/cpu/amd

View file

@ -1,7 +1,5 @@
{ lib, config, ... }: { lib, config, ... }:
let {
inherit (config.boot) kernelPackages;
in {
imports = [ imports = [
../../../common/cpu/amd ../../../common/cpu/amd
../../../common/gpu/amd ../../../common/gpu/amd

View file

@ -1,4 +1,4 @@
{ lib, config, ... }: { lib, ... }:
{ {
imports = [ imports = [

View file

@ -1,7 +1,6 @@
{ {
lib, lib,
config, config,
pkgs,
... ...
}: { }: {
imports = [ imports = [

View file

@ -1,5 +1,3 @@
{ lib, ... }:
{ {
imports = [ imports = [
../. ../.

View file

@ -1,5 +1,3 @@
{ pkgs, lib, ... }:
{ {
nixpkgs.overlays = [ nixpkgs.overlays = [
(import ./overlay.nix) (import ./overlay.nix)

View file

@ -1,4 +1,4 @@
{ lib, pkgs, ...}: { { lib, ...}: {
imports = [ imports = [
../../common/cpu/amd ../../common/cpu/amd
../../common/cpu/amd/pstate.nix ../../common/cpu/amd/pstate.nix

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ...}: { lib, pkgs, ...}:
{ {
hardware.deviceTree = { hardware.deviceTree = {

View file

@ -1,4 +1,4 @@
{ pkgs, config, lib, ... }: { config, ... }:
{ {
imports = [ imports = [

View file

@ -1,4 +1,4 @@
{ pkgs, lib, ... }: { lib, ... }:
{ {
boot.initrd.kernelModules = [ boot.initrd.kernelModules = [
# PCIe/NVMe # PCIe/NVMe

View file

@ -1,4 +1,4 @@
{ callPackage, pkgsBuildHost, runCommand, writeText, writeShellApplication { callPackage, pkgsBuildHost, writeText, writeShellApplication
, stdenv, dtc, mtdutils, coreutils }: , stdenv, dtc, mtdutils, coreutils }:
let let
uboot = callPackage ./uboot.nix { }; uboot = callPackage ./uboot.nix { };

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, modulesPath, ... }: { config, pkgs, modulesPath, ... }:
let firmware = pkgs.callPackage ./firmware.nix { }; let firmware = pkgs.callPackage ./firmware.nix { };
in { in {

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }: { config, lib, ... }:
lib.mkIf config.hardware.librem5.customInitrdModules { lib.mkIf config.hardware.librem5.customInitrdModules {
boot.initrd = { boot.initrd = {
kernelModules = [ kernelModules = [

View file

@ -1,4 +1,4 @@
{ stdenv, gcc11Stdenv, buildUBoot, fetchurl, fetchFromGitLab, lib, flex, bison }: { stdenv, gcc11Stdenv, buildUBoot, fetchurl, fetchFromGitLab, lib, bison }:
let let
firmware-imx = stdenv.mkDerivation (fa: { firmware-imx = stdenv.mkDerivation (fa: {
pname = "firmware-imx"; pname = "firmware-imx";

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }: { config, lib, ... }:
lib.mkIf (config.hardware.librem5.wifiCard == "redpine") { lib.mkIf (config.hardware.librem5.wifiCard == "redpine") {
# Disable mainline rsi module # Disable mainline rsi module
boot.blacklistedKernelModules = [ boot.blacklistedKernelModules = [

View file

@ -1,4 +1,4 @@
{ callPackage, pkgsBuildHost, runCommand, writeText, writeShellApplication { callPackage, pkgsBuildHost, writeText, writeShellApplication
, stdenv, dtc, mtdutils, coreutils }: , stdenv, dtc, mtdutils, coreutils }:
let let
uboot = callPackage ./uboot.nix { }; uboot = callPackage ./uboot.nix { };

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, modulesPath, ... }: { config, pkgs, modulesPath, ... }:
let firmware = pkgs.callPackage ./firmware.nix { }; let firmware = pkgs.callPackage ./firmware.nix { };
in { in {