Skip to content

Commit 6bd8ba2

Browse files
committed
feat(alejandra): add option configPath
1 parent 9c52372 commit 6bd8ba2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

modules/hooks.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ in
9797
default = false;
9898
example = true;
9999
};
100+
configPath =
101+
mkOption {
102+
type = types.nullOr (types.oneOf [ types.str types.path ]);
103+
description = "(experimental) Path to the alejandra.toml configuration file.";
104+
default = null;
105+
};
100106
exclude =
101107
mkOption {
102108
type = types.listOf types.str;
@@ -2087,6 +2093,7 @@ in
20872093
cmdArgs =
20882094
mkCmdArgs (with hooks.alejandra.settings; [
20892095
[ check "--check" ]
2096+
[ (configPath != null) "--experimental-config ${configPath}" ]
20902097
[ (exclude != [ ]) "--exclude ${lib.strings.concatStringsSep " --exclude " (map lib.escapeShellArg (lib.unique exclude))}" ]
20912098
[ (verbosity == "quiet") "-q" ]
20922099
[ (verbosity == "silent") "-qq" ]

0 commit comments

Comments
 (0)