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,17 +5,20 @@
... ...
}: }:
with lib; let with lib; let
filetypeDefinition = helpers.mkNullOrOption (types.attrsOf ( filetypeDefinition =
types.oneOf [ helpers.mkNullOrOption
(with types;
attrsOf (
oneOf [
# Raw filetype # Raw filetype
types.str str
# Function to set the filetype # Function to set the filetype
helpers.rawType helpers.rawType
# ["filetype" {priority = xx;}] # ["filetype" {priority = xx;}]
(types.listOf (types.either types.str (types.submodule { (listOf (either str (submodule {
options = { options = {
priority = mkOption { priority = mkOption {
type = types.int; type = int;
}; };
}; };
}))) })))