From 62b99619920661f1af5fc6271b14d48f89278539 Mon Sep 17 00:00:00 2001 From: NAHO <90870942+trueNAHO@users.noreply.github.com> Date: Fri, 11 Oct 2024 20:42:53 +0200 Subject: [PATCH] latexindent: enable settings.disableExtraFiles option by default Enable the hooks.latexindent.settings.disableExtraFiles option by default, aligning with the community consensus that this should be the standard when using version control. Link: https://github.com/cachix/git-hooks.nix/pull/514 --- modules/hooks.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/hooks.nix b/modules/hooks.nix index 04858a2b..60cfbcb6 100644 --- a/modules/hooks.nix +++ b/modules/hooks.nix @@ -2,7 +2,7 @@ let inherit (config) hooks tools settings; cfg = config; - inherit (lib) flatten mapAttrs mapAttrsToList mkDefault mkEnableOption mkOption mkRemovedOptionModule mkRenamedOptionModule types; + inherit (lib) flatten mapAttrs mapAttrsToList mkDefault mkOption mkRemovedOptionModule mkRenamedOptionModule types; cargoManifestPathArg = lib.optionalString @@ -631,12 +631,12 @@ in type = types.submodule { imports = [ hookModule ]; options.settings = { - disableExtraFiles = - mkEnableOption - (throw "initial description should never be evaluated") - // { - description = "Whether to disable the creation of backup and log files."; - }; + disableExtraFiles = mkOption { + default = true; + example = false; + description = "Whether to disable the creation of backup and log files."; + type = types.bool; + }; extraConfig = mkOption { type = types.attrs;