niksos/modules/cli/zoxide.nix
2024-04-25 20:20:24 +02:00

19 lines
475 B
Nix

{
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;
};
};
};
}