34 lines
No EOL
616 B
Nix
34 lines
No EOL
616 B
Nix
{config, pkgs, lib, ...}:
|
|
|
|
let
|
|
cfg = config.modules.yazi;
|
|
in
|
|
{
|
|
options.modules.yazi = {
|
|
enable = lib.mkEnableOption "Enable Yazi file manager";
|
|
optional-programs = lib.mkEnableOption "Enable optional extra packages";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
programs = {
|
|
yazi.enable = true;
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
nerd-fonts.ubuntu
|
|
nerd-fonts.ubuntu-mono
|
|
]
|
|
++ lib.mkIf cfg.optional-programs (with pkgs; [
|
|
ffmpeg_7
|
|
p7zip
|
|
jq
|
|
poppler
|
|
fd
|
|
ripgrep
|
|
fzf
|
|
zoxide
|
|
resvg
|
|
imagemagick
|
|
]);
|
|
};
|
|
} |