feat(home): Zoxide
This commit is contained in:
parent
545de6261f
commit
39339c3acc
3 changed files with 24 additions and 8 deletions
|
@ -48,6 +48,7 @@ in
|
|||
wezterm = enabled;
|
||||
wget = enabled;
|
||||
zathura = enabled;
|
||||
zoxide = enabled;
|
||||
};
|
||||
xorg = {
|
||||
xsession = enabled;
|
||||
|
|
23
modules/home/programs/zoxide/default.nix
Normal file
23
modules/home/programs/zoxide/default.nix
Normal 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" ];
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.zoxide = {
|
||||
enable = true;
|
||||
|
||||
options = [ "--cmd cd" ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue