nixdots/home/programs/terminal/file-managers/ranger.nix
2024-07-27 01:07:07 +02:00

19 lines
336 B
Nix

{
pkgs,
lib,
config,
...
}: let
inherit (lib.strings) optionalString;
in {
home.packages = with pkgs; [
ranger
];
# TODO: more file preview methods
xdg.configFile."ranger/rc.conf".text = ''
set preview_images true
${(optionalString config.programs.kitty.enable "set preview_images_method kitty")}
'';
}