modules/filetype: code formatting

This commit is contained in:
Gaetan Lepage 2023-12-09 20:34:24 +01:00 committed by Gaétan Lepage
parent 1f652b60e5
commit 430c8f672b

View file

@ -5,22 +5,25 @@
... ...
}: }:
with lib; let with lib; let
filetypeDefinition = helpers.mkNullOrOption (types.attrsOf ( filetypeDefinition =
types.oneOf [ helpers.mkNullOrOption
# Raw filetype (with types;
types.str attrsOf (
# Function to set the filetype oneOf [
helpers.rawType # Raw filetype
# ["filetype" {priority = xx;}] str
(types.listOf (types.either types.str (types.submodule { # Function to set the filetype
options = { helpers.rawType
priority = mkOption { # ["filetype" {priority = xx;}]
type = types.int; (listOf (either str (submodule {
}; options = {
}; priority = mkOption {
}))) type = int;
] };
)); };
})))
]
));
in { in {
options.filetype = options.filetype =
helpers.mkCompositeOption '' helpers.mkCompositeOption ''