niksos/modules/cli/zoxide.nix

22 lines
505 B
Nix
Raw Normal View History

2024-04-25 20:20:24 +02:00
{
config,
lib,
...
2024-05-05 12:38:40 +02:00
}: let
2024-04-25 20:20:24 +02:00
cfg = config.myOptions.programs.starship;
inherit (config.myOptions.other.system) username;
2024-05-05 12:38:40 +02:00
inherit (lib) mkEnableOption mkIf;
2024-04-25 20:20:24 +02:00
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;
};
};
};
}