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.
This commit is contained in:
parent
b3edb33057
commit
3633e3995c
1 changed files with 5 additions and 2 deletions
|
|
@ -11,11 +11,14 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.metacfg.cli-apps.tmux = {
|
options.metacfg.cli-apps.tmux = {
|
||||||
enable = mkEnableOption "Tmux";
|
enable = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = true;
|
||||||
|
description = "Enable Tmux";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = with pkgs; [ tmux ];
|
|
||||||
home.file.".tmux.conf".text = ''
|
home.file.".tmux.conf".text = ''
|
||||||
set -g mouse on
|
set -g mouse on
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue