ranger configuration added

This commit is contained in:
foglar 2025-01-25 19:06:09 +01:00
parent c7f80edf45
commit cf47d4c63a
2 changed files with 20 additions and 1 deletions

View File

@ -22,7 +22,6 @@
curl
fzf
tldr
ranger
unzip
fd
imagemagick # convert images from formats like jpg, png, etc.

View File

@ -0,0 +1,20 @@
{
lib,
config,
...
}: {
options = {
program.ranger.enable =
lib.mkEnableOption "Enable ranger";
}
config = lib.mkIf config.program.ranger.enable {
programs.ranger = {
enable = true;
extraConfig = ''
set preview_images true
set preview_images_method kitty
'';
};
};
}