nixdots/home/programs/terminal/file-managers/ranger.nix

20 lines
337 B
Nix
Raw Normal View History

2024-04-04 23:26:38 +00:00
{
pkgs,
lib,
config,
...
}: let
inherit (lib.strings) optionalString;
in {
2024-04-04 23:33:23 +00:00
home.packages = with pkgs; [
ranger
];
2024-04-04 23:26:38 +00:00
2024-04-04 23:33:23 +00:00
# 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")}
'';
2024-04-04 23:26:38 +00:00
}