added yazi optional programs
This commit is contained in:
parent
e85f5c72a9
commit
1d213cbf4e
3 changed files with 39 additions and 1 deletions
|
|
@ -4,7 +4,6 @@
|
|||
programs = {
|
||||
vim.enable = true;
|
||||
git.enable = true;
|
||||
yazi.enable = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
|
|
|||
34
modules/yazi.nix
Normal file
34
modules/yazi.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{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 [
|
||||
ffmpeg_7
|
||||
p7zip
|
||||
jq
|
||||
poppler
|
||||
fd
|
||||
ripgrep
|
||||
fzf
|
||||
zoxide
|
||||
resvg
|
||||
imagemagick
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -18,5 +18,10 @@
|
|||
waybar = true;
|
||||
};
|
||||
|
||||
modules.yazi = {
|
||||
enable = true;
|
||||
optional-programs = true;
|
||||
};
|
||||
|
||||
system.stateVersion = "25.11";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue