treewide: remove unused attrs patterns

This commit is contained in:
Benedikt Rips
2025-10-26 22:29:55 +01:00
committed by Austin Horstman
parent 71402c5df3
commit a93d80bcec
78 changed files with 62 additions and 159 deletions

View File

@@ -14,7 +14,7 @@ let
dstDir = "${config.home.homeDirectory}/Library/LaunchAgents";
launchdConfig =
{ config, name, ... }:
{ name, ... }:
{
options = {
enable = lib.mkEnableOption name;

View File

@@ -1,4 +1,3 @@
{ lib }:
{
# Converts a boolean to a yes/no string. This is used in lots of
# configuration formats.

View File

@@ -5,7 +5,7 @@ rec {
assertions = import ./assertions.nix { inherit lib; };
booleans = import ./booleans.nix { inherit lib; };
booleans = import ./booleans.nix;
darwin = import ./darwin.nix { inherit lib; };
deprecations = import ./deprecations.nix { inherit lib; };
generators = import ./generators.nix { inherit lib; };

View File

@@ -1,9 +1,3 @@
{
config,
lib,
pkgs,
...
}:
{
time = "2025-11-04T15:44:03+00:00";
condition = true;

View File

@@ -1,4 +1,3 @@
{ config, pkgs, ... }:
{
time = "2026-03-15T20:42:27+00:00";
condition = true;

View File

@@ -1,4 +1,3 @@
{ config, pkgs, ... }:
{
time = "2026-03-25T17:18:02+00:00";
condition = true;

View File

@@ -10,9 +10,7 @@ let
type = lib.types.str;
};
initSubmodule =
{ config, ... }:
{
initSubmodule = {
options.bash = mkShellInitOption "bash";
options.fish = mkShellInitOption "fish";
options.nushell = mkShellInitOption "nushell";

View File

@@ -193,7 +193,6 @@ in
userName,
imap,
passwordCommand,
aerc,
...
}@cfg:
let

View File

@@ -45,7 +45,7 @@ in
contexts = mkOption {
type = lib.types.attrsOf (
lib.types.submodule (
{ name, config, ... }:
{ name, ... }:
{
freeformType = jsonFormat.type;
options = {

View File

@@ -16,7 +16,7 @@ let
mkUlidAssertions =
path:
lib.concatMap (
{ name, value }:
{ name, ... }:
let
length = 26;
allowed = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";

View File

@@ -178,7 +178,7 @@ let
hotkeysSettingsType = with types; nullOr (attrsOf (listOf (submodule hotkeysOptions)));
extraFilesOptions =
{ name, config, ... }:
{ name, ... }:
{
options = {
source = mkOption {
@@ -303,7 +303,7 @@ in
description = "List of vaults to create.";
type = types.attrsOf (
types.submodule (
{ name, config, ... }:
{ name, ... }:
{
options = {
enable = mkOption {

View File

@@ -6,7 +6,7 @@
}:
let
cfg = config.programs.vicinae;
vicinaeLib = import ./lib.nix { inherit lib pkgs; };
vicinaeLib = import ./lib.nix { inherit pkgs; };
jsonFormat = pkgs.formats.json { };
tomlFormat = pkgs.formats.toml { };

View File

@@ -1,6 +1,5 @@
{
pkgs,
lib,
}:
{
mkExtension =

View File

@@ -1,6 +1,5 @@
{
config,
options,
lib,
pkgs,
...
@@ -46,7 +45,6 @@ let
{
name,
config,
options,
...
}:
{

View File

@@ -1,6 +1,5 @@
{
config,
options,
lib,
pkgs,
...

View File

@@ -2,7 +2,6 @@
config,
lib,
pkgs,
options,
...
}:
let

View File

@@ -1,6 +1,5 @@
{
config,
options,
lib,
pkgs,
...

View File

@@ -234,9 +234,7 @@ in
'';
default = { };
type = lib.types.attrsOf (
lib.types.submodule (
{ name, config, ... }:
{
lib.types.submodule {
options = {
onDispatch = lib.mkOption {
type = lib.types.str;
@@ -271,7 +269,6 @@ in
};
};
}
)
);
example = lib.literalExpression ''
{

View File

@@ -1,8 +1,8 @@
{
cfg,
config,
lib,
moduleName,
...
}:
let
inherit (lib) concatStringsSep mapAttrsToList optionalString;

View File

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

View File

@@ -1,5 +1,3 @@
{ config, pkgs, ... }:
{
# Home Manager needs a bit of information about you and the paths it should
# manage.

View File

@@ -1,4 +1,3 @@
{ pkgs, ... }:
{
home.username = "alice";
home.homeDirectory = "/home/alice";

View File

@@ -1,5 +1,3 @@
{ config, pkgs, ... }:
{
# Home Manager needs a bit of information about you and the paths it should
# manage.

View File

@@ -16,7 +16,7 @@
};
i18n-custom-locales =
{ config, pkgs, ... }:
{ pkgs, ... }:
{
config =
let

View File

@@ -1,4 +1,3 @@
{ pkgs, ... }:
{
gtk = {
enable = true;

View File

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

View File

@@ -1,10 +1,3 @@
{
lib,
pkgs,
config,
...
}:
{
programs.algia = {
enable = true;

View File

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

View File

@@ -1,5 +1,3 @@
{ lib, pkgs, ... }:
{
dbeaver-without-settings = ./without-settings.nix;
dbeaver-with-settings = ./with-settings.nix;

View File

@@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ pkgs, ... }:
let
workspaceDir =

View File

@@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ pkgs, ... }:
let
workspaceDir =

View File

@@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ pkgs, ... }:
let
workspaceDir =

View File

@@ -1,4 +1,3 @@
{ config, ... }:
{
config = {
programs.fish = {

View File

@@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ pkgs, ... }:
let

View File

@@ -2,7 +2,6 @@
lib,
options,
pkgs,
config,
...
}:

View File

@@ -1,4 +1,4 @@
{ pkgs, config, ... }:
{ pkgs, ... }:
{
programs.go = {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,4 +1,3 @@
{ config, pkgs, ... }:
{
programs.kitty = {
enable = true;

View File

@@ -1,4 +1,3 @@
{ lib, pkgs, ... }:
{
config = {
programs.kitty = {

View File

@@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ pkgs, ... }:
{
config = {
programs.mods = {

View File

@@ -1,4 +1,3 @@
{ config, ... }:
{
home.stateVersion = "25.05"; # <= 25.11
programs.password-store = {

View File

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

View File

@@ -1,6 +1,5 @@
{
config,
pkgs,
realPkgs,
...
}:

View File

@@ -1,8 +1,3 @@
{
config,
...
}:
{
config = {
programs.ssh = {

View File

@@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ pkgs, ... }:
{
config = {
programs.tex-fmt = {

View File

@@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ pkgs, ... }:
{
config = {
programs.tex-fmt = {

View File

@@ -1,5 +1,3 @@
{ pkgs, ... }:
{
programs.ty = {
enable = true;

View File

@@ -1,5 +1,3 @@
{ config, ... }:
{
config = {
programs.vesktop = {

View File

@@ -1,6 +1,5 @@
{
pkgs,
config,
...
}:

View File

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

View File

@@ -1,4 +1,3 @@
{ config, ... }:
{
xdg.enable = true;
home.preferXdgDirectories = true;

View File

@@ -1,5 +1,3 @@
{ lib, ... }:
{
programs.wezterm = {
enable = true;

View File

@@ -1,5 +1,3 @@
{ lib, ... }:
{
programs.wezterm = {
enable = true;

View File

@@ -1,5 +1,3 @@
{ config, ... }:
{
config = {
services.caffeine = {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, ... }:
{
services.darkman = {

View File

@@ -1,6 +1,5 @@
{
config,
lib,
...
}:

View File

@@ -1,6 +1,5 @@
{
config,
lib,
...
}:

View File

@@ -1,5 +1,3 @@
{ config, ... }:
{
config = {
services.gnome-keyring = {

View File

@@ -1,5 +1,3 @@
{ config, ... }:
{
config = {
services.gnome-keyring = {

View File

@@ -1,5 +1,3 @@
{ lib, pkgs, ... }:
{
xsession.windowManager.herbstluftwm = {
enable = true;

View File

@@ -1,5 +1,3 @@
{ config, ... }:
{
config = {
services.home-manager.autoUpgrade = {

View File

@@ -1,5 +1,3 @@
{ config, ... }:
{
wayland.windowManager.hyprland = {
enable = true;

View File

@@ -1,5 +1,3 @@
{ config, ... }:
{
wayland.windowManager.hyprland = {
enable = true;

View File

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

View File

@@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ pkgs, ... }:
{
services.proton-pass-agent = {
enable = true;

View File

@@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ pkgs, ... }:
{
services.proton-pass-agent = {
enable = true;

View File

@@ -1,4 +1,4 @@
{ pkgs, config, ... }:
{ config, ... }:
let
package = config.lib.test.mkStubPackage {
buildScript = ''

View File

@@ -1,5 +1,3 @@
{ config, lib, ... }:
{
targets.genericLinux.gpu = {
enable = true;

View File

@@ -11,7 +11,7 @@ includes = [ "*.nix" ]
[formatter.deadnix]
command = "deadnix"
options = [ "--edit", "--no-lambda-pattern-names" ]
options = [ "--edit" ]
includes = [ "*.nix" ]
[formatter.nixf-diagnose]