nixcfg/modules/home/cli-apps/tmux/default.nix
Harald Hoyer 3633e3995c feat(home-manager): enhance tmux configuration options
- Replaced `mkEnableOption` with a more detailed boolean `mkOption` for `tmux` configuration.
- Set a default value of `true` and added description for better clarity.
- Simplifies `tmux` package handling by removing unnecessary declaration.
2026-02-13 12:56:10 +01:00

26 lines
369 B
Nix

{
lib,
config,
pkgs,
...
}:
with lib;
with lib.metacfg;
let
cfg = config.metacfg.cli-apps.tmux;
in
{
options.metacfg.cli-apps.tmux = {
enable = mkOption {
type = types.bool;
default = true;
description = "Enable Tmux";
};
};
config = mkIf cfg.enable {
home.file.".tmux.conf".text = ''
set -g mouse on
'';
};
}