feat(tmux): add enable option

This commit is contained in:
2026-05-22 10:22:12 +02:00
parent 2d4f428fd3
commit a3c24382f8
2 changed files with 21 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
{
lib,
...
}:
{ {
imports = [ imports = [
./bash.nix ./bash.nix
@@ -5,4 +10,6 @@
./prompt.nix ./prompt.nix
../tmux ../tmux
]; ];
tmux.enable = lib.mkDefault true;
} }

View File

@@ -1,7 +1,18 @@
{ pkgs, dotsPath, ... }:
{ {
config = { config,
lib,
pkgs,
dotsPath,
...
}:
let
cfg = config.tmux;
in
{
options.tmux.enable = lib.mkEnableOption "tmux";
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [ home.packages = with pkgs; [
tmuxp tmuxp
reptyr reptyr