mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-10 06:59:41 +00:00
20 lines
337 B
Nix
20 lines
337 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")}
|
|
'';
|
|
}
|
|
|