Skip to content

Commit 6c76c50

Browse files
committed
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: #514
1 parent 750711b commit 6c76c50

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

modules/hooks.nix

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
let
33
inherit (config) hooks tools settings;
44
cfg = config;
5-
inherit (lib) flatten mapAttrs mapAttrsToList mkDefault mkEnableOption mkOption mkRemovedOptionModule mkRenamedOptionModule types;
5+
inherit (lib) flatten mapAttrs mapAttrsToList mkDefault mkOption mkRemovedOptionModule mkRenamedOptionModule types;
66

77
cargoManifestPathArg =
88
lib.optionalString
@@ -683,12 +683,12 @@ in
683683
type = types.submodule {
684684
imports = [ hookModule ];
685685
options.settings = {
686-
disableExtraFiles =
687-
mkEnableOption
688-
(throw "initial description should never be evaluated")
689-
// {
690-
description = "Whether to disable the creation of backup and log files.";
691-
};
686+
disableExtraFiles = mkOption {
687+
default = true;
688+
example = false;
689+
description = "Whether to disable the creation of backup and log files.";
690+
type = types.bool;
691+
};
692692

693693
extraConfig = mkOption {
694694
type = types.attrs;

0 commit comments

Comments
 (0)