We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c52372 commit 6bd8ba2Copy full SHA for 6bd8ba2
modules/hooks.nix
@@ -97,6 +97,12 @@ in
97
default = false;
98
example = true;
99
};
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
+ };
106
exclude =
107
mkOption {
108
type = types.listOf types.str;
@@ -2087,6 +2093,7 @@ in
2087
2093
cmdArgs =
2088
2094
mkCmdArgs (with hooks.alejandra.settings; [
2089
2095
[ check "--check" ]
2096
+ [ (configPath != null) "--experimental-config ${configPath}" ]
2090
2097
[ (exclude != [ ]) "--exclude ${lib.strings.concatStringsSep " --exclude " (map lib.escapeShellArg (lib.unique exclude))}" ]
2091
2098
[ (verbosity == "quiet") "-q" ]
2092
2099
[ (verbosity == "silent") "-qq" ]
0 commit comments