ranger: fzf integration

This commit is contained in:
Primrose 2025-02-20 08:44:44 +01:00
parent 4f0bd9c9e9
commit 645403156c
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
3 changed files with 45 additions and 4 deletions

View file

@ -1,12 +1,21 @@
{
config,
lib,
pkgs,
...
}: let
cfg = config.programs.ranger;
in {
xdg.configFile = lib.mkIf cfg.enable {
"ranger/rc.conf".source = ./rc.conf;
"ranger/rifle.conf".source = ./rifle.conf;
config = lib.mkIf cfg.enable {
xdg.configFile = {
"ranger/rc.conf".source = ./rc.conf;
"ranger/rifle.conf".source = ./rifle.conf;
"ranger/commands.py".source = ./commands.py;
};
# Ranger fzf dependencies
home.packages = [
pkgs.fd
];
};
}