add zoxide

This commit is contained in:
jacekpoz 2024-04-25 20:20:24 +02:00
parent 82565454d5
commit 99c015bb2d
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8
4 changed files with 22 additions and 0 deletions

View file

@ -181,6 +181,7 @@
};
profiling = false;
};
zoxide.enable = true;
anyrun.enable = true;
vesktop.enable = true;
btop.enable = true;

View file

@ -114,6 +114,7 @@
};
profiling = false;
};
zoxide.enable = true;
anyrun.enable = true;
vesktop.enable = true;
btop.enable = true;

View file

@ -2,6 +2,7 @@ _: {
imports = [
./git.nix
./starship.nix
./zoxide.nix
./zsh.nix
];
}

19
modules/cli/zoxide.nix Normal file
View file

@ -0,0 +1,19 @@
{
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;
};
};
};
}