From 39339c3acc58539a0738e2dee5d3a8a7bffa96ab Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sat, 16 Nov 2024 21:16:16 -0800 Subject: [PATCH] feat(home): Zoxide --- homes/x86_64-linux/marley@nyx/default.nix | 1 + modules/home/programs/zoxide/default.nix | 23 +++++++++++++++++++++++ old/home/programs/zoxide.nix | 8 -------- 3 files changed, 24 insertions(+), 8 deletions(-) create mode 100644 modules/home/programs/zoxide/default.nix delete mode 100644 old/home/programs/zoxide.nix diff --git a/homes/x86_64-linux/marley@nyx/default.nix b/homes/x86_64-linux/marley@nyx/default.nix index efe4292..84d6564 100644 --- a/homes/x86_64-linux/marley@nyx/default.nix +++ b/homes/x86_64-linux/marley@nyx/default.nix @@ -48,6 +48,7 @@ in wezterm = enabled; wget = enabled; zathura = enabled; + zoxide = enabled; }; xorg = { xsession = enabled; diff --git a/modules/home/programs/zoxide/default.nix b/modules/home/programs/zoxide/default.nix new file mode 100644 index 0000000..a602f68 --- /dev/null +++ b/modules/home/programs/zoxide/default.nix @@ -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" ]; + }; + }; +} diff --git a/old/home/programs/zoxide.nix b/old/home/programs/zoxide.nix deleted file mode 100644 index 648cf49..0000000 --- a/old/home/programs/zoxide.nix +++ /dev/null @@ -1,8 +0,0 @@ -{ ... }: -{ - programs.zoxide = { - enable = true; - - options = [ "--cmd cd" ]; - }; -}