nixos/yazi: refactor settings (#475151)

This commit is contained in:
Austin Horstman
2026-01-05 00:36:45 +00:00
committed by GitHub
+10 -16
View File
@@ -27,23 +27,17 @@ in
type =
with lib.types;
submodule {
options = (
lib.listToAttrs (
map (
name:
lib.nameValuePair name (
lib.mkOption {
inherit (settingsFormat) type;
default = { };
description = ''
Configuration included in `${name}.toml`.
options = lib.genAttrs files (
name:
lib.mkOption {
inherit (settingsFormat) type;
default = { };
description = ''
Configuration included in `${name}.toml`.
See <https://yazi-rs.github.io/docs/configuration/${name}/> for documentation.
'';
}
)
) files
)
See <https://yazi-rs.github.io/docs/configuration/${name}/> for documentation.
'';
}
);
};
default = { };