Convert Vifm configuration to module
This commit is contained in:
parent
a0e5672290
commit
46384d49c1
8 changed files with 23 additions and 13 deletions
|
@ -5,7 +5,6 @@
|
||||||
./git.nix
|
./git.nix
|
||||||
./pass.nix
|
./pass.nix
|
||||||
./gnupg.nix
|
./gnupg.nix
|
||||||
./vifm
|
|
||||||
./bat.nix
|
./bat.nix
|
||||||
./eza.nix
|
./eza.nix
|
||||||
./direnv.nix
|
./direnv.nix
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
{ pkgs, ...}:
|
|
||||||
{
|
|
||||||
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;
|
|
||||||
}
|
|
|
@ -1,6 +1,7 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
config.modules = {
|
config.modules = {
|
||||||
cli.neovim.enable = true;
|
cli.neovim.enable = true;
|
||||||
|
cli.vifm.enable = true;
|
||||||
video.kdenlive.enable = false;
|
video.kdenlive.enable = false;
|
||||||
web.firefox.enable = true;
|
web.firefox.enable = true;
|
||||||
web.qutebrowser.enable = true;
|
web.qutebrowser.enable = true;
|
||||||
|
|
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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -2,6 +2,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./cli/neovim
|
./cli/neovim
|
||||||
|
./cli/vifm
|
||||||
./desktop/sway
|
./desktop/sway
|
||||||
./gaming/lutris
|
./gaming/lutris
|
||||||
./video/kdenlive
|
./video/kdenlive
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue