mirror of
https://codeberg.org/muon/home.git
synced 2025-12-05 23:57:46 +00:00
Add yazi config
This commit is contained in:
parent
3b7fc020f6
commit
87fe0471ad
3 changed files with 41 additions and 7 deletions
|
|
@ -1,10 +1,6 @@
|
|||
{ pkgs, lib, osConfig, ... }: {
|
||||
imports = [
|
||||
./shell.nix
|
||||
./emulator.nix
|
||||
./development.nix
|
||||
./tools.nix
|
||||
];
|
||||
imports =
|
||||
[ ./shell.nix ./emulator.nix ./development.nix ./tools.nix ./yazi.nix ];
|
||||
|
||||
config = lib.mkIf osConfig.mods.desktop.enable {
|
||||
mods.terminal.emulator.enable = lib.mkDefault true;
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ in with lib; {
|
|||
"bat"
|
||||
"zoxide"
|
||||
"dircolors"
|
||||
"yazi"
|
||||
"nix-index"
|
||||
"thefuck"
|
||||
|
||||
|
|
|
|||
39
modules/home/terminal/yazi.nix
Normal file
39
modules/home/terminal/yazi.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
let cfg = config.mods.terminal;
|
||||
in with lib; {
|
||||
|
||||
config = mkIf cfg.tools.enable {
|
||||
programs.yazi = {
|
||||
enable = true;
|
||||
settings = {
|
||||
manager = {
|
||||
ratio = [ 1 4 3 ];
|
||||
sort_by = "natural";
|
||||
sort_sensitive = true;
|
||||
sort_reverse = false;
|
||||
sort_dir_first = true;
|
||||
linemode = "none";
|
||||
show_hidden = true;
|
||||
show_symlink = true;
|
||||
};
|
||||
|
||||
preview = {
|
||||
image_filter = "lanczos3";
|
||||
image_quality = 90;
|
||||
tab_size = 1;
|
||||
max_width = 600;
|
||||
max_height = 900;
|
||||
cache_dir = "";
|
||||
ueberzug_scale = 1;
|
||||
ueberzug_offset = [ 0 0 0 0 ];
|
||||
};
|
||||
|
||||
tasks = {
|
||||
micro_workers = 5;
|
||||
macro_workers = 10;
|
||||
bizarre_retry = 5;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue