Skip to content

Commit 1d3be3c

Browse files
committed
feat(nixfmt): options
add new options for the nixfmt hook as well
1 parent 2b7cf87 commit 1d3be3c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

modules/hooks.nix

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -965,8 +965,14 @@ in
965965
options.settings = {
966966
width =
967967
mkOption {
968-
type = types.nullOr types.int;
969-
description = "Line width.";
968+
type = with types; nullOr int;
969+
description = "Maximum width in characters.";
970+
default = null;
971+
};
972+
indent =
973+
mkOption {
974+
type = with types; nullOr int;
975+
description = "Number of spaces to use for indentation.";
970976
default = null;
971977
};
972978
};

0 commit comments

Comments
 (0)