summaryrefslogtreecommitdiff
path: root/modules/programs/tmux.nix
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2016-12-12 23:38:53 +0100
committerDaiderd Jordan <daiderd@gmail.com>2016-12-12 23:38:53 +0100
commitd24886a64849ca0a3b85a835ede37e75f3484058 (patch)
tree03da581c94c9fc58c8bbcb8e6b54789521aa9514 /modules/programs/tmux.nix
parent2af32bbcfe1ac7dcecf40dfb7d7f8ca747308755 (diff)
add enable option for programs.tmux
Diffstat (limited to 'modules/programs/tmux.nix')
-rw-r--r--modules/programs/tmux.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/programs/tmux.nix b/modules/programs/tmux.nix
index 5f8264d..9aadfaa 100644
--- a/modules/programs/tmux.nix
+++ b/modules/programs/tmux.nix
@@ -26,6 +26,14 @@ let
in {
options = {
+ programs.tmux.enable = mkOption {
+ type = types.bool;
+ default = false;
+ description = ''
+ Whether to configure tmux.
+ '';
+ };
+
programs.tmux.loginShell = mkOption {
type = types.path;
default = "$SHELL";
@@ -83,7 +91,7 @@ in {
};
- config = {
+ config = mkIf cfg.enable {
programs.tmux.tmuxOptions.login-shell.text = if stdenv.isDarwin then ''
set -g default-command "reattach-to-user-namespace ${cfg.loginShell}"