niksos/modules/cli/zoxide.nix

23 lines
540 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
2024-07-25 11:45:44 +02:00
inherit (lib.modules) mkIf;
inherit (lib.options) mkEnableOption;
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;
};
};
};
}