snowflake/user/termtools.nix
2025-05-30 22:59:38 +08:00

29 lines
515 B
Nix

{ config, lib, ... }:
let
inherit (lib) mkOption types;
cfg = config.termtools;
in
{
imports = [ ./subs/tmux.nix ];
options.termtools = {
tmux.enable = mkOption {
default = false;
type = types.bool;
};
zoxide.enable = mkOption {
default = false;
type = types.bool;
};
};
config = {
subs.tmux.enable = cfg.tmux.enable;
programs.zoxide = {
enable = cfg.zoxide.enable;
enableZshIntegration = true;
options = [ "--cmd cd" ];
};
};
}