Added zoxide module

This commit is contained in:
alejandro-angulo 2024-08-08 19:30:39 -07:00
parent 4e46c7ea90
commit cb94deac89
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
2 changed files with 23 additions and 1 deletions

View file

@ -18,6 +18,7 @@
firefox.enable = true; firefox.enable = true;
gpg.enable = true; gpg.enable = true;
kitty.enable = true; kitty.enable = true;
zoxide.enable = true;
}; };
tools = { tools = {
@ -33,6 +34,5 @@
# misc utils without custom config # misc utils without custom config
programs = { programs = {
fzf.enable = true; fzf.enable = true;
zoxide.enable = true;
}; };
} }

View file

@ -0,0 +1,22 @@
{
config,
pkgs,
lib,
namespace,
...
}: let
cfg = config.${namespace}.programs.zoxide;
in {
options.${namespace}.programs.zoxide = {
enable = lib.mkEnableOption "zoxide";
};
config = lib.mkIf cfg.enable {
home.packages = [pkgs.zoxide];
programs.zoxide = {
enable = true;
options = ["--cmd cd"];
};
};
}