system/home/progs/vifm/default.nix

29 lines
440 B
Nix
Raw Normal View History

{ 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";
};
};
2022-08-29 15:40:41 +03:00
config = mkIf cfg.enable {
home.packages = with pkgs; [
2022-08-29 15:40:41 +03:00
vifm # a vi-like file manager
];
2022-08-29 15:40:41 +03:00
xdg.configFile = {
"vifm/vifmrc".source = ./vifmrc;
};
};
}