nixos/home/lf/default.nix
2024-03-13 23:32:40 +01:00

33 lines
555 B
Nix

{ pkgs, config, ... }: {
home.packages = with pkgs; [ pistol ];
programs.lf = {
enable = true;
keybindings = {
d = "delete";
x = "cut";
"<enter>" = "open";
"<c-g>" = "quit";
"<esc>" = "quit";
"H" = "set hidden!";
};
settings = { ratios = [ 1 1 2 ]; };
previewer.source = "${pkgs.pistol}/bin/pistol";
extraConfig = ''
set nodirfirst
set incsearch
set icons
set drawbox
'';
};
xdg.configFile."lf" = {
recursive = true;
source = ./config;
};
}