system/home/progs/zoxide.nix

24 lines
396 B
Nix

{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.progs.zoxide;
in
{
options.progs.zoxide = {
enable = mkOption {
type = types.bool;
default = false;
description = "Add zoxide, a modern replacement for cd";
};
};
config = mkIf cfg.enable {
programs.zoxide = {
enable = true;
enableZshIntegration = config.shell.zsh.enable;
};
};
}