Skip to content

Commit

Permalink
Fix option remap
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Feb 11, 2024
1 parent 4bce98e commit 85a9a97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ in
# Rename `settings.<name>.package` to `hooks.<name>.package`
map (name: mkRenamedOptionModule [ "settings" name "package" ] [ "hooks" name "package" ]) [ "alejandra" "eclint" "flynt" "mdl" "treefmt" ]
# Manually rename options that had a package option
++ flatten (mapAttrsToList (name: map (o: mkRenamedOptionModule [ "settings" name o ] [ "hooks" name o ])) {
++ flatten (mapAttrsToList (name: map (o: mkRenamedOptionModule [ "settings" name o ] [ "hooks" name "settings" o ])) {
"alejandra" = [ "check" "exclude" "threads" "verbosity" ];
"eclint" = [ "fix" "summary" "color" "exclude" "verbosity" ];
"flynt" = [ "aggressive" "binPath" "dry-run" "exclude" "fail-on-change" "line-length" "no-multiline" "quiet" "string" "transform-concats" "verbose" ];
Expand Down

0 comments on commit 85a9a97

Please sign in to comment.