Files
nixos-config/home/terminal/software/yazi/default.nix
T
2026-03-31 16:53:11 +02:00

32 lines
653 B
Nix

{
config,
pkgs,
...
}: let
configFile = "yazi/yazi.toml";
toTOML = (pkgs.formats.toml {}).generate;
in {
users.users.someone.packages = [pkgs.yazi];
xdg.configFile."${configFile}".source = toTOML "yazi.toml" {
mgr = {
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}";
};
flavor = {
dark = "noctalia";
};
};
}