- All base/* modules now use (mkEnableOption "...") // { default = true; }
so they activate automatically when imported — no explicit .enable = true
required in host configs
- packages.nix: add comment documenting that lazylib does not exist in
nixpkgs; lazygit is the correct and intended package
- zellij-ps.nix: clarify that cli.zellij-ps namespace is intentional —
it is the home-manager module convention from m3ta-nixpkgs
- nix flake check passes (warnings are pre-existing)
29 lines
584 B
Nix
29 lines
584 B
Nix
# Lf — terminal file manager with bat preview and Dracula theme.
|
|
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.base.cliTools.lf;
|
|
in {
|
|
# Enabled by default — base modules are always-on.
|
|
options.base.cliTools.lf.enable = (mkEnableOption "enable lf terminal file manager") // {default = true;};
|
|
|
|
config = mkIf cfg.enable {
|
|
home.packages = [pkgs.lf];
|
|
|
|
programs.lf = {
|
|
enable = true;
|
|
settings = {
|
|
preview = true;
|
|
drawbox = true;
|
|
hidden = true;
|
|
icons = true;
|
|
previewer = "bat";
|
|
};
|
|
};
|
|
};
|
|
}
|