25 lines
398 B
Nix
25 lines
398 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;
|
||
|
};
|
||
|
};
|
||
|
}
|
||
|
|