another small reorg
This commit is contained in:
45
home/opt/yazi/default.nix
Normal file
45
home/opt/yazi/default.nix
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./theme/filetype.nix
|
||||
./theme/icons.nix
|
||||
./theme/manager.nix
|
||||
./theme/status.nix
|
||||
];
|
||||
|
||||
# general file info
|
||||
home.packages = [pkgs.exiftool];
|
||||
|
||||
# yazi file manager
|
||||
programs.yazi = {
|
||||
enable = true;
|
||||
|
||||
package = pkgs.yazi;
|
||||
|
||||
enableBashIntegration = config.programs.bash.enable;
|
||||
enableZshIntegration = config.programs.zsh.enable;
|
||||
|
||||
settings = {
|
||||
manager = {
|
||||
layout = [1 4 3];
|
||||
sort_by = "alphabetical";
|
||||
sort_sensitive = true;
|
||||
sort_reverse = false;
|
||||
sort_dir_first = true;
|
||||
linemode = "none";
|
||||
show_hidden = false;
|
||||
show_symlink = true;
|
||||
};
|
||||
|
||||
preview = {
|
||||
tab_size = 2;
|
||||
max_width = 600;
|
||||
max_height = 900;
|
||||
cache_dir = config.xdg.cacheHome;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user