feat(home): Zoxide

This commit is contained in:
punkfairie 2024-11-16 21:16:16 -08:00
parent 545de6261f
commit 39339c3acc
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696
3 changed files with 24 additions and 8 deletions

View file

@ -48,6 +48,7 @@ in
wezterm = enabled;
wget = enabled;
zathura = enabled;
zoxide = enabled;
};
xorg = {
xsession = enabled;

View file

@ -0,0 +1,23 @@
{
lib,
config,
namespace,
...
}:
let
inherit (lib) mkIf;
inherit (lib.${namespace}) mkEnableModule;
cfg = config.${namespace}.programs.zoxide;
in
{
options = mkEnableModule "programs.zoxide";
config = mkIf cfg.enable {
programs.zoxide = {
enable = true;
options = [ "--cmd cd" ];
};
};
}

View file

@ -1,8 +0,0 @@
{ ... }:
{
programs.zoxide = {
enable = true;
options = [ "--cmd cd" ];
};
}