24 lines
331 B
Nix
24 lines
331 B
Nix
|
{
|
||
|
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" ];
|
||
|
};
|
||
|
};
|
||
|
}
|