niksos/modules/cli/zoxide.nix
2024-08-06 17:46:57 +02:00

22 lines
516 B
Nix

{
config,
lib,
...
}: let
cfg = config.poz.programs.starship;
inherit (config.poz.other.system) username;
inherit (lib.modules) mkIf;
inherit (lib.options) mkEnableOption;
in {
options.poz.programs.zoxide.enable = mkEnableOption "zoxide";
config = mkIf cfg.enable {
home-manager.users.${username} = {
programs.zoxide = {
enable = true;
enableZshIntegration = config.poz.programs.zsh.enable;
};
};
};
}