Skip to content

Commit 0514a3b

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 f7650ba commit 0514a3b

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
@@ -636,12 +636,12 @@ in
636636
type = types.submodule {
637637
imports = [ hookModule ];
638638
options.settings = {
639-
disableExtraFiles =
640-
mkEnableOption
641-
(throw "initial description should never be evaluated")
642-
// {
643-
description = "Whether to disable the creation of backup and log files.";
644-
};
639+
disableExtraFiles = mkOption {
640+
default = true;
641+
example = false;
642+
description = "Whether to disable the creation of backup and log files.";
643+
type = types.bool;
644+
};
645645

646646
extraConfig = mkOption {
647647
type = types.attrs;

0 commit comments

Comments
 (0)