system/home/progs/vifm/default.nix

28 lines
457 B
Nix

{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.progs.vifm;
in
{
options.progs.vifm = {
enable = mkOption {
type = types.bool;
default = false;
description = "Add and configure vifm, a vi-like file manager";
};
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
vifm # a vi-like file manager
];
xdg.configFile = {
"vifm/vifmrc".source = ./vifmrc;
};
};
}