From cdd013201986b3c75df01f65fca1d51687938718 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 14 Dec 2024 15:02:57 +0100 Subject: fix(modules/lf/ctpv/prev/{any,inode}): Use the correct module options --- modules/by-name/lf/lf/ctpv/prev/default.nix | 2 +- modules/by-name/lf/lf/ctpv/prev/inode/default.nix | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/by-name/lf/lf/ctpv/prev/default.nix b/modules/by-name/lf/lf/ctpv/prev/default.nix index d8ab36c4..211a20bd 100644 --- a/modules/by-name/lf/lf/ctpv/prev/default.nix +++ b/modules/by-name/lf/lf/ctpv/prev/default.nix @@ -8,8 +8,8 @@ in { soispha.programs.lf.ctpv.previewers = { any = { previewer = ./any.sh; - mime_matches = ["*/*"]; priority = -1; + matches.mime = ["*/*"]; replacementStrings = { STORAGE_DIRECTORY = "${cfg.ctpv.xdgDataHome}/ctpv/missing_previews"; }; diff --git a/modules/by-name/lf/lf/ctpv/prev/inode/default.nix b/modules/by-name/lf/lf/ctpv/prev/inode/default.nix index 1261727e..bed0b81a 100644 --- a/modules/by-name/lf/lf/ctpv/prev/inode/default.nix +++ b/modules/by-name/lf/lf/ctpv/prev/inode/default.nix @@ -1,15 +1,15 @@ -{ ...}: { +{...}: { soispha.programs.lf.ctpv.previewers = { ls = { previewer = ./ls.sh; priority = 1; - mime_matches = ["inode/directory"]; + matches.mime = ["inode/directory"]; dependencies = []; }; symlink = { previewer = ./symlink.sh; priority = 1; - mime_matches = ["inode/symlink"]; + matches.mime = ["inode/symlink"]; dependencies = []; }; }; -- cgit 1.4.1