snowflake/user/termtools.nix
datsudo c38929e6b1 reconfigure bash
because nix shells uses this
2025-06-06 20:47:57 +08:00

30 lines
549 B
Nix

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