marleyos/modules/home/programs/zoxide/default.nix
2024-11-16 21:16:16 -08:00

23 lines
331 B
Nix

{
lib,
config,
namespace,
...
}:
let
inherit (lib) mkIf;
inherit (lib.${namespace}) mkEnableModule;
cfg = config.${namespace}.programs.zoxide;
in
{
options = mkEnableModule "programs.zoxide";
config = mkIf cfg.enable {
programs.zoxide = {
enable = true;
options = [ "--cmd cd" ];
};
};
}