From cb94deac8960ca88ec9ea370c78670bbed7a8a4c Mon Sep 17 00:00:00 2001 From: alejandro-angulo Date: Thu, 8 Aug 2024 19:30:39 -0700 Subject: [PATCH] Added zoxide module --- homes/x86_64-linux/alejandro/default.nix | 2 +- modules/home/programs/zoxide/default.nix | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 modules/home/programs/zoxide/default.nix diff --git a/homes/x86_64-linux/alejandro/default.nix b/homes/x86_64-linux/alejandro/default.nix index ea389ee..c99ee5a 100644 --- a/homes/x86_64-linux/alejandro/default.nix +++ b/homes/x86_64-linux/alejandro/default.nix @@ -18,6 +18,7 @@ firefox.enable = true; gpg.enable = true; kitty.enable = true; + zoxide.enable = true; }; tools = { @@ -33,6 +34,5 @@ # misc utils without custom config programs = { fzf.enable = true; - zoxide.enable = true; }; } diff --git a/modules/home/programs/zoxide/default.nix b/modules/home/programs/zoxide/default.nix new file mode 100644 index 0000000..4c072b1 --- /dev/null +++ b/modules/home/programs/zoxide/default.nix @@ -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"]; + }; + }; +}