dotfiles/modules/home/programs/zoxide/default.nix

23 lines
352 B
Nix
Raw Permalink Normal View History

2024-08-09 02:30:39 +00:00
{
config,
pkgs,
lib,
namespace,
...
}: let
cfg = config.${namespace}.programs.zoxide;
in {
options.${namespace}.programs.zoxide = {
enable = lib.mkEnableOption "zoxide";
};
config = lib.mkIf cfg.enable {
home.packages = [pkgs.zoxide];
programs.zoxide = {
enable = true;
options = ["--cmd cd"];
};
};
}