From ff77fcadc2bda71ef8805b37b176ba1f63811780 Mon Sep 17 00:00:00 2001 From: Jason Felice Date: Thu, 19 Mar 2020 18:03:49 -0400 Subject: [PATCH] Rename programs.tmux.tmuxConfig -> extraConfig --- modules/examples/lnl.nix | 2 +- modules/programs/tmux.nix | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/examples/lnl.nix b/modules/examples/lnl.nix index 5179807..b4a1b0d 100644 --- a/modules/examples/lnl.nix +++ b/modules/examples/lnl.nix @@ -106,7 +106,7 @@ programs.tmux.enableFzf = true; programs.tmux.enableVim = true; - programs.tmux.tmuxConfig = '' + programs.tmux.extraConfig = '' bind 0 set status bind S choose-session diff --git a/modules/programs/tmux.nix b/modules/programs/tmux.nix index d11f016..04dce29 100644 --- a/modules/programs/tmux.nix +++ b/modules/programs/tmux.nix @@ -39,6 +39,9 @@ let in { + imports = [ + (mkRenamedOptionModule [ "programs" "tmux" "tmuxConfig" ] [ "programs" "tmux" "extraConfig" ]) + ]; options = { programs.tmux.enable = mkOption { type = types.bool; @@ -92,7 +95,7 @@ in default = {}; }; - programs.tmux.tmuxConfig = mkOption { + programs.tmux.extraConfig = mkOption { type = types.lines; default = ""; description = "Extra configuration to add to tmux.conf."; @@ -112,7 +115,7 @@ in environment.etc."tmux.conf".text = '' ${tmuxOptions} - ${cfg.tmuxConfig} + ${cfg.extraConfig} source-file -q /etc/tmux.conf.local '';