niksos/modules/cli/zoxide.nix

20 lines
475 B
Nix
Raw Normal View History

2024-04-25 20:20:24 +02:00
{
config,
lib,
...
}: with lib; let
cfg = config.myOptions.programs.starship;
inherit (config.myOptions.other.system) username;
in {
options.myOptions.programs.zoxide.enable = mkEnableOption "zoxide";
config = mkIf cfg.enable {
home-manager.users.${username} = {
programs.zoxide = {
enable = true;
enableZshIntegration = config.myOptions.programs.zsh.enable;
};
};
};
}