niksos/modules/cli/zoxide.nix

23 lines
516 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-07-15 23:18:25 +02:00
cfg = config.poz.programs.starship;
inherit (config.poz.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 {
2024-07-15 23:18:25 +02:00
options.poz.programs.zoxide.enable = mkEnableOption "zoxide";
2024-04-25 20:20:24 +02:00
config = mkIf cfg.enable {
home-manager.users.${username} = {
programs.zoxide = {
enable = true;
2024-07-15 23:18:25 +02:00
enableZshIntegration = config.poz.programs.zsh.enable;
2024-04-25 20:20:24 +02:00
};
};
};
}