- 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.
26 lines
369 B
Nix
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
|
|
'';
|
|
};
|
|
}
|