Convert Vifm configuration to module
This commit is contained in:
parent
a0e5672290
commit
46384d49c1
8 changed files with 23 additions and 13 deletions
21
modules/home-manager/cli/vifm/default.nix
Normal file
21
modules/home-manager/cli/vifm/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.cli.vifm;
|
||||
in
|
||||
{
|
||||
options.modules.cli.vifm = {
|
||||
enable = mkEnableOption "enable Vifm file browser";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
vifm
|
||||
chafa # Preview images
|
||||
poppler_utils # Preview PDF file
|
||||
];
|
||||
|
||||
home.file.".config/vifm/vifmrc".source = ./files/vifmrc;
|
||||
home.file.".config/vifm/colors/base16-default-dark.vifm".source = ./files/base16-default-dark.vifm;
|
||||
home.file.".config/vifm/devicons.vifm".source = ./files/devicons.vifm;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue