mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
Merge pull request #184 from eraserhd/support-tmux-extraConfig
Rename programs.tmux.tmuxConfig -> extraConfig
This commit is contained in:
commit
053f2cb9cb
2 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue