Merge pull request #43863 from volth/unused4

[bot] nixos/*: remove unused arguments in lambdas
This commit is contained in:
Jörg Thalheim 2018-07-21 16:39:08 +01:00 committed by GitHub
commit e9ff0f9448
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
279 changed files with 419 additions and 424 deletions

View File

@ -47,7 +47,7 @@ rec {
machinesNumbered = zipLists machines (range 1 254);
nodes_ = flip map machinesNumbered (m: nameValuePair m.fst
[ ( { config, pkgs, nodes, ... }:
[ ( { config, nodes, ... }:
let
interfacesNumbered = zipLists config.virtualisation.vlans (range 1 255);
interfaces = flip map interfacesNumbered ({ fst, snd }:

View File

@ -24,9 +24,6 @@
# most likely fails as GRUB will probably refuse to install.
partitionTableType ? "legacy"
# Whether to invoke switch-to-configuration boot during image creation
, installBootLoader ? true
, # The root file system type.
fsType ? "ext4"

View File

@ -1,4 +1,4 @@
{ stdenv, perl, closureInfo, xorriso, syslinux
{ stdenv, closureInfo, xorriso, syslinux
, # The file name of the resulting ISO image.
isoName ? "cd.iso"

View File

@ -222,7 +222,7 @@ in rec {
runInMachineWithX = { require ? [], ... } @ args:
let
client =
{ config, pkgs, ... }:
{ ... }:
{
inherit require;
virtualisation.memorySize = 1024;

View File

@ -149,7 +149,7 @@ let
else testOptions;
checkAll = checkList == [];
in
flip filter graph ({option, usedBy}:
flip filter graph ({option, ...}:
(checkAll || elem option checkList)
&& !(elem option excludedTestOptions)
);
@ -165,7 +165,7 @@ let
'';
graphToText = graph:
concatMapStrings ({option, usedBy}:
concatMapStrings ({usedBy, ...}:
concatMapStrings (user: ''
${user}
'') usedBy

View File

@ -1,7 +1,7 @@
# This module gets rid of all dependencies on X11 client libraries
# (including fontconfig).
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
with lib;

View File

@ -1,6 +1,6 @@
# Configuration for the Name Service Switch (/etc/nsswitch.conf).
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
with lib;

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
with lib;

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
with lib;

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
with lib;

View File

@ -282,7 +282,7 @@ let
};
groupOpts = { name, config, ... }: {
groupOpts = { name, ... }: {
options = {

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
with lib;

View File

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

View File

@ -1,4 +1,4 @@
{pkgs, config, ...}:
{pkgs, ...}:
{
hardware.firmware = [ pkgs.zd1211fw ];

View File

@ -1,6 +1,6 @@
# This module provides the proprietary ATI X11 / OpenGL drivers.
{ config, lib, pkgs, pkgs_i686, ... }:
{ config, lib, pkgs_i686, ... }:
with lib;

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
with lib;

View File

@ -1,6 +1,4 @@
{ lib
, stdenv
, buildEnv
{ buildEnv
, libwebcam
, makeWrapper
, runCommand

View File

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ pkgs, ... }:
{
imports = [ ./installation-cd-graphical-kde.nix ];

View File

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ pkgs, ... }:
{
imports = [ ./installation-cd-minimal.nix ];

View File

@ -1,7 +1,7 @@
# This module defines a small NixOS installation CD. It does not
# contain any graphical stuff.
{ config, lib, pkgs, ... }:
{ ... }:
{
imports =

View File

@ -1,7 +1,7 @@
# This module contains the basic configuration for building netboot
# images
{ config, lib, pkgs, ... }:
{ lib, ... }:
with lib;

View File

@ -1,6 +1,6 @@
# This module defines a small netboot environment.
{ config, lib, ... }:
{ ... }:
{
imports =

View File

@ -1,6 +1,6 @@
# List all devices which are detected by nixos-generate-config.
# Common devices are enabled by default.
{ config, lib, pkgs, ... }:
{ lib, ... }:
with lib;

View File

@ -1,7 +1,7 @@
# This module generates nixos-install, nixos-rebuild,
# nixos-generate-config, etc.
{ config, lib, pkgs, modulesPath, ... }:
{ config, lib, pkgs, ... }:
with lib;

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, ... }:
with lib;

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, ... }:
with lib;

View File

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

View File

@ -9,7 +9,7 @@
# Systemd can also change ownership of service directories using the
# RuntimeDirectory/StateDirectory options.
{ config, pkgs, lib, ... }:
{ lib, ... }:
{
options = {

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
with lib;

View File

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

View File

@ -1,4 +1,4 @@
{ config, options, lib, pkgs, ... }:
{ config, lib, pkgs, ... }:
with lib;

View File

@ -1,4 +1,4 @@
{ config, lib, ... }:
{ lib, ... }:
with lib;

View File

@ -1,7 +1,7 @@
# This module allows you to export something from configuration
# Use case: export kernel source expression for ease of configuring
{ config, lib, ... }:
{ lib, ... }:
{
options = {

View File

@ -3,7 +3,7 @@
# enabled in the initrd. Its primary use is in the NixOS installation
# CDs.
{ config, pkgs, ... }:
{ ... }:
{

View File

@ -1,7 +1,7 @@
# This module defines the software packages included in the "minimal"
# installation CD. It might be useful elsewhere.
{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:
{
# Include some utilities that are useful for installing or repairing

View File

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

View File

@ -1,7 +1,7 @@
# This module defines a NixOS configuration with the Plasma 5 desktop.
# It's used by the graphical installation CD.
{ config, pkgs, ... }:
{ pkgs, ... }:
{
services.xserver = {

View File

@ -1,7 +1,7 @@
# A profile with most (vanilla) hardening options enabled by default,
# potentially at the cost of features and performance.
{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:
with lib;

View File

@ -1,7 +1,7 @@
# Common configuration for headless machines (e.g., Amazon EC2
# instances).
{ config, lib, pkgs, ... }:
{ lib, ... }:
with lib;

View File

@ -1,7 +1,7 @@
# This module defines a small NixOS configuration. It does not
# contain any graphical stuff.
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
with lib;

View File

@ -1,7 +1,7 @@
# Common configuration for virtual machines running under QEMU (using
# virtio).
{ config, pkgs, ... }:
{ ... }:
{
boot.initrd.availableKernelModules = [ "virtio_net" "virtio_pci" "virtio_mmio" "virtio_blk" "virtio_scsi" "9p" "9pnet_virtio" ];

View File

@ -1,6 +1,6 @@
# Global configuration for atop.
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
with lib;

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
{
options.programs.bcc.enable = lib.mkEnableOption "bcc";

View File

@ -2,7 +2,7 @@
# Most of the stuff here should probably be moved elsewhere sometime.
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
with lib;

View File

@ -1,6 +1,6 @@
# This module defines a standard configuration for NixOS shells.
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
with lib;

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
with lib;

View File

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, lib, ... }:
with lib;
{

View File

@ -1,6 +1,6 @@
# This module provides configuration for the OATH PAM modules.
{ config, lib, pkgs, ... }:
{ lib, ... }:
with lib;

View File

@ -97,7 +97,7 @@ let
${dir_cfg.extraConfig}
'';
directorOptions = {name, config, ...}:
directorOptions = {...}:
{
options = {
password = mkOption {
@ -117,7 +117,7 @@ let
};
};
deviceOptions = {name, config, ...}:
deviceOptions = {...}:
{
options = {
archiveDevice = mkOption {

View File

@ -510,7 +510,7 @@ in {
'';
default = { };
type = types.attrsOf (types.submodule (
{ name, config, ... }: {
{ ... }: {
options = {
path = mkOption {

View File

@ -6,7 +6,7 @@ with lib;
description = ''
Periodic backups to create with Restic.
'';
type = types.attrsOf (types.submodule ({ name, config, ... }: {
type = types.attrsOf (types.submodule ({ name, ... }: {
options = {
passwordFile = mkOption {
type = types.str;

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
with lib;
let
cfg = config.services.jenkinsSlave;

View File

@ -15,7 +15,7 @@ let
${cfg.extraConfig}
'';
bindingCfg = { config, ... }: {
bindingCfg = { ... }: {
options = {
keys = mkOption {

View File

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, lib, ... }:
let kernel = config.boot.kernelPackages; in

View File

@ -9,7 +9,7 @@ let
etcFiles = pkgs.callPackage ./brscan4_etc_files.nix { netDevices = netDeviceList; };
netDeviceOpts = { name, config, ... }: {
netDeviceOpts = { name, ... }: {
options = {

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, services, ... }:
{ config, lib, pkgs, ... }:
with lib;
let

View File

@ -110,7 +110,7 @@ let
special_use = \${toString mailbox.specialUse}
'' + "}";
mailboxes = { lib, pkgs, ... }: {
mailboxes = { ... }: {
options = {
name = mkOption {
type = types.strMatching ''[^"]+'';

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
with lib;

View File

@ -1,4 +1,4 @@
{ config, pkgs, lib, mono, ... }:
{ config, pkgs, lib, ... }:
with lib;

View File

@ -1,4 +1,4 @@
{ config, pkgs, lib, mono, ... }:
{ config, pkgs, lib, ... }:
with lib;

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
with lib;

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
with lib;

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
with lib;
let cfg = config.nix.sshServe;

View File

@ -1,4 +1,4 @@
{ config, pkgs, lib, mono, ... }:
{ config, pkgs, lib, ... }:
with lib;

View File

@ -1,4 +1,4 @@
{ config, pkgs, lib, mono, ... }:
{ config, pkgs, lib, ... }:
with lib;

View File

@ -84,7 +84,7 @@ let
in flatten (mapAttrsToList mkSublist attrs);
in all isNull (findPkiDefinitions [] manualPkiOptions);
orgOptions = { name, ... }: {
orgOptions = { ... }: {
options.users = mkOption {
type = types.uniq (types.listOf types.str);
default = [];

View File

@ -94,7 +94,7 @@ let
};
});
mkSubModule = { name, port, extraOpts, serviceOpts }: {
mkSubModule = { name, port, extraOpts, ... }: {
${name} = mkOption {
type = types.submodule {
options = (mkExporterOpts {

View File

@ -64,7 +64,7 @@ let
"DEVICESCAN ${notifyOpts}${cfg.defaults.autodetected}"}
'';
smartdDeviceOpts = { name, ... }: {
smartdDeviceOpts = { ... }: {
options = {

View File

@ -139,7 +139,7 @@ in
description = ''
BeeGFS configurations. Every mount point requires a separate configuration.
'';
type = with types; attrsOf (submodule ({ config, ... } : {
type = with types; attrsOf (submodule ({ ... } : {
options = {
mgmtdHost = mkOption {
type = types.str;

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, ...}:
{ config, lib, ...}:
let
inherit (lib) concatStringsSep mkOption types;

View File

@ -1,5 +1,5 @@
# Avahi daemon.
{ config, lib, utils, pkgs, ... }:
{ config, lib, pkgs, ... }:
with lib;

View File

@ -9,7 +9,7 @@ let
cfg = config.services.cjdns;
connectToSubmodule =
{ options, ... }:
{ ... }:
{ options =
{ password = mkOption {
type = types.str;

View File

@ -405,7 +405,7 @@ in
outTunnels = mkOption {
default = {};
type = with types; loaOf (submodule (
{ name, config, ... }: {
{ name, ... }: {
options = {
destinationPort = mkOption {
type = types.int;
@ -426,7 +426,7 @@ in
inTunnels = mkOption {
default = {};
type = with types; loaOf (submodule (
{ name, config, ... }: {
{ name, ... }: {
options = {
inPort = mkOption {
type = types.int;

View File

@ -1,4 +1,4 @@
{ config, lib, ... }:
{ lib, ... }:
{ options.services.nghttpx = {
enable = lib.mkEnableOption "nghttpx";

View File

@ -22,7 +22,7 @@ let
Deny-IP=${concatStringsSep " " cfg.deniedIPRanges}
'';
nylonOpts = { name, config, ... }: {
nylonOpts = { name, ... }: {
options = {

View File

@ -1,4 +1,4 @@
{ config, stdenv, pkgs, lib, ... }:
{ config, pkgs, lib, ... }:
with lib;

View File

@ -1,4 +1,4 @@
{ pkgs, lib, config, options, ... }:
{ pkgs, lib, config, ... }:
with lib;

View File

@ -479,7 +479,7 @@ in
assertions = [{ assertion = if cfg.forwardX11 then cfgc.setXAuthLocation else true;
message = "cannot enable X11 forwarding without setting xauth location";}]
++ flip map cfg.listenAddresses ({ addr, port, ... }: {
++ flip map cfg.listenAddresses ({ addr, ... }: {
assertion = addr != null;
message = "addr must be specified in each listenAddresses entry";
});

View File

@ -1,4 +1,4 @@
{ config, stdenv, pkgs, lib, ... }:
{ config, pkgs, lib, ... }:
with lib;

View File

@ -1,4 +1,4 @@
{ config, coreutils, lib, pkgs, ... }:
{ config, lib, pkgs, ... }:
with lib;

View File

@ -10,7 +10,7 @@ let
# interface options
interfaceOpts = { name, ... }: {
interfaceOpts = { ... }: {
options = {

View File

@ -1,4 +1,4 @@
{ config, stdenv, pkgs, lib, ... }:
{ config, pkgs, lib, ... }:
with lib;

View File

@ -1,4 +1,4 @@
{ config, pkgs, lib, nodes, ... }:
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.services.zerobin;

View File

@ -1,4 +1,4 @@
{ pkgs, config, lib, ... }:
{ config, lib, ... }:
with lib;
let
cfg = config.services.oauth2_proxy.nginx;

View File

@ -578,7 +578,7 @@ in
];
}
'';
type = types.loaOf (types.submodule ({name, config, ...}: {
type = types.loaOf (types.submodule ({name, ...}: {
options = {
name = mkOption {
@ -638,7 +638,7 @@ in
authorizeClient = mkOption {
default = null;
description = "If configured, the hidden service is accessible for authorized clients only.";
type = types.nullOr (types.submodule ({config, ...}: {
type = types.nullOr (types.submodule ({...}: {
options = {

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, timezone, ... }:
{ config, lib, pkgs, ... }:
with lib;

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, services, ... }:
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.matomo;

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, options, ... }:
{ config, lib, pkgs, ... }:
with lib;

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, serverInfo, php, ... }:
{ config, lib, pkgs, serverInfo, ... }:
with lib;

View File

@ -1,4 +1,4 @@
{ config, pkgs, serverInfo, lib, ... }:
{ config, pkgs, lib, ... }:
let
inherit (pkgs) mercurial;

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, serverInfo, php, ... }:
{ config, lib, pkgs, serverInfo, ... }:
# http://codex.wordpress.org/Hardening_WordPress
with lib;

View File

@ -3,7 +3,7 @@
# has additional options that affect the web server as a whole, like
# the user/group to run under.)
{ config, lib }:
{ lib, ... }:
with lib;
{

View File

@ -6,7 +6,7 @@ let
cfg = config.services.zope2;
zope2Opts = { name, config, ... }: {
zope2Opts = { name, ... }: {
options = {
name = mkOption {

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
with lib;

View File

@ -5,7 +5,7 @@
# not, a X server (Xvfb) is started for that user. The Xvfb instances
# persist across VNC sessions.
{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:
with lib;

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
with lib;

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, options, modulesPath, ... }:
{ config, lib, pkgs, ... }:
with lib;
let

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, pkgs_i686, ... }:
{ config, lib, pkgs, ... }:
with lib;

View File

@ -226,7 +226,7 @@ in
default = [];
example = lib.literalExample "[ ({ original = pkgs.openssl; replacement = pkgs.callPackage /path/to/openssl { }; }) ]";
type = types.listOf (types.submodule (
{ options, ... }: {
{ ... }: {
options.original = mkOption {
type = types.package;
description = "The original package to override.";

View File

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ pkgs, lib, ... }:
{
config = lib.mkIf (pkgs.kexectools.meta.available) {

Some files were not shown because too many files have changed in this diff Show More