system/modules/home-manager/programs/file-managers/vifm/default.nix

39 lines
909 B
Nix
Raw Permalink Normal View History

2024-04-16 02:51:46 +03:00
{ config, pkgs, lib, ... }:
2022-10-12 01:41:32 +03:00
2022-10-28 23:35:03 +03:00
let
viu = pkgs.rustPlatform.buildRustPackage {
pname = "viu";
version = "23-10-2022";
src = pkgs.fetchFromGitHub {
owner = "atanunq";
repo = "viu";
rev = "d377402ab0e29e890779071e2454b51bea8605c1";
sha256 = "sha256-pvEuafwgHORwAjYGSB/m2BcdCCJ/UfLEgSUIgkyBrtI=";
};
# tests need an interactive terminal
doCheck = false;
cargoSha256 = "sha256-WZfQgCAe/vvGQohCJPB4XxKidWwS+m6GxBQ0nBxo8P4=";
};
in
2022-10-12 01:41:32 +03:00
{
2024-04-16 02:51:46 +03:00
options.local.programs.file-managers.vifm.enable = lib.mkEnableOption "vifm";
config = lib.mkIf config.local.programs.file-managers.vifm.enable {
home.packages = [
pkgs.vifm
viu # terminal image viewer
pkgs.libarchive
pkgs.zip
pkgs.unzip
];
2022-10-12 01:41:32 +03:00
2024-04-16 02:51:46 +03:00
xdg.configFile = {
"vifm/vifmrc".source = ./vifmrc;
"vifm/colors/catppuccin".source = ./vifm_catppuccin.vifm;
};
2022-10-12 01:41:32 +03:00
};
}