diff options
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/default.nix | 1 | ||||
| -rw-r--r-- | modules/zoxide.nix | 24 |
2 files changed, 25 insertions, 0 deletions
diff --git a/modules/default.nix b/modules/default.nix index 502413b..72849ae 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -20,5 +20,6 @@ ./pass ./colors ./zathura.nix + ./zoxide.nix ]; } diff --git a/modules/zoxide.nix b/modules/zoxide.nix new file mode 100644 index 0000000..f86a725 --- /dev/null +++ b/modules/zoxide.nix @@ -0,0 +1,24 @@ +{ config, lib, pkgs, ... }: +let + cfg = config.modules.zoxide; + + inherit (lib) mkEnableOption mkOption mkIf types; +in +{ + options.modules.zoxide = { + enable = mkOption { + type = types.bool; + default = true; + description = "enable zoxide"; + }; + }; + + config = mkIf cfg.enable { + programs.zoxide = { + enable = true; + enableZshIntegration = true; + # options = [ + # ]; + }; + }; +} |