summaryrefslogtreecommitdiff
path: root/modules/programs
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2020-03-29 20:05:12 +0200
committerGitHub <noreply@github.com>2020-03-29 20:05:12 +0200
commit053f2cb9cb0ce7ceb4933cbd76e2d28713ad85da (patch)
treeafdefdf1dc13a3789e0e7d11077bf5e3ca0bffd8 /modules/programs
parent5418d6bb8b6d73863920736f8c2e1a24941bfe64 (diff)
parentff77fcadc2bda71ef8805b37b176ba1f63811780 (diff)
Merge pull request #184 from eraserhd/support-tmux-extraConfig
Rename programs.tmux.tmuxConfig -> extraConfig
Diffstat (limited to 'modules/programs')
-rw-r--r--modules/programs/tmux.nix7
1 files changed, 5 insertions, 2 deletions
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 <filename>tmux.conf</filename>.";
@@ -112,7 +115,7 @@ in
environment.etc."tmux.conf".text = ''
${tmuxOptions}
- ${cfg.tmuxConfig}
+ ${cfg.extraConfig}
source-file -q /etc/tmux.conf.local
'';