system/nix/progs/xplr/default.nix
Dmitriy Pleshevskiy 5fd8136cd1
nix/prog/nvim: add folding
nix/prog/nvim: enable arrows in the insert mode
2022-08-03 12:16:29 +03:00

28 lines
483 B
Nix

{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.progs.xplr;
in
{
options.progs.xplr = {
enable = mkOption {
type = types.bool;
default = false;
description = "Add and configure xplr, a terminal UI based file explorer";
};
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
xplr # a terminal UI based file explorer
];
xdg.configFile = {
"xplr/init.lua".source = ./init.lua;
};
};
}