diff --git a/nixos/modules/programs/yazi.nix b/nixos/modules/programs/yazi.nix index b19b7abff758..ffab1747d991 100644 --- a/nixos/modules/programs/yazi.nix +++ b/nixos/modules/programs/yazi.nix @@ -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 for documentation. - ''; - } - ) - ) files - ) + See for documentation. + ''; + } ); }; default = { };