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" ]; - }; -}