Skip to content

Commit

Permalink
latexindent: enable settings.disableExtraFiles option by default
Browse files Browse the repository at this point in the history
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: cachix#514
  • Loading branch information
trueNAHO committed Oct 12, 2024
1 parent 392184d commit 62b9961
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 62b9961

Please sign in to comment.