13f35677be
Move Home Manager module defaults from a centralized `desktop-home-defaults.nix` file into their respective `wisdom` slices. This change aligns with the updated documentation regarding module ownership, where defaults live with the option that owns them rather than in a shared defaults file. Additionally, update `docs/conventions.md` to reflect this new pattern for defining `mkEnableOption` defaults and move base git/encryption configurations into the core `wisdom` module. - Delete `modules/hosts/desktop-home-defaults.nix` - Update `modules/wisdom/default.nix` to include shared git and package defaults - Add `default = ...` to `mkEnableOption` in various `wisdom` modules - Update `docs/conventions.md` with new HM slice guidelines
61 lines
1.6 KiB
Nix
61 lines
1.6 KiB
Nix
{ ... }: {
|
|
# Gated by `chiasson.home.shell.yazi.enable` (desktop hosts wire slices via `desktopHomeBase`).
|
|
flake.homeManagerModules.wisdomShellYazi =
|
|
{ config, lib, pkgs, ... }:
|
|
let
|
|
root = config.chiasson.home;
|
|
cfg = config.chiasson.home.shell.yazi;
|
|
in
|
|
{
|
|
options.chiasson.home.shell.yazi.enable = lib.mkEnableOption "Yazi as `y` + 7zz with rar." // {
|
|
default = true;
|
|
};
|
|
|
|
config = lib.mkIf (root.enable && cfg.enable) {
|
|
programs.yazi = {
|
|
enable = true;
|
|
package = pkgs.yazi.override {
|
|
_7zz = pkgs._7zz-rar;
|
|
};
|
|
shellWrapperName = "y";
|
|
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;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|