Files
nix-config/modules/home/shell/zoxide.nix
T

22 lines
463 B
Nix
Raw Normal View History

2026-08-20 22:03:24 +02:00
{
flake.modules.homeManager.zoxide = {
lib,
config,
...
}:
with lib; let
cfg = config.home.shell.zoxide;
in {
options.home.shell.zoxide = {
enable = mkEnableOption "Enable zoxide";
replaceCd = mkEnableOption "Replace cd with zoxide";
};
config.programs.zoxide = mkIf cfg.enable {
inherit (cfg) enable;
options = mkIf cfg.replaceCd [
"--cmd cd"
];
};
};
}