1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-31 04:04:45 +00:00

Rename programs.tmux.tmuxConfig -> extraConfig

This commit is contained in:
Jason Felice 2020-03-19 18:03:49 -04:00
parent 5418d6bb8b
commit ff77fcadc2
2 changed files with 6 additions and 3 deletions

View file

@ -106,7 +106,7 @@
programs.tmux.enableFzf = true; programs.tmux.enableFzf = true;
programs.tmux.enableVim = true; programs.tmux.enableVim = true;
programs.tmux.tmuxConfig = '' programs.tmux.extraConfig = ''
bind 0 set status bind 0 set status
bind S choose-session bind S choose-session

View file

@ -39,6 +39,9 @@ let
in in
{ {
imports = [
(mkRenamedOptionModule [ "programs" "tmux" "tmuxConfig" ] [ "programs" "tmux" "extraConfig" ])
];
options = { options = {
programs.tmux.enable = mkOption { programs.tmux.enable = mkOption {
type = types.bool; type = types.bool;
@ -92,7 +95,7 @@ in
default = {}; default = {};
}; };
programs.tmux.tmuxConfig = mkOption { programs.tmux.extraConfig = mkOption {
type = types.lines; type = types.lines;
default = ""; default = "";
description = "Extra configuration to add to <filename>tmux.conf</filename>."; description = "Extra configuration to add to <filename>tmux.conf</filename>.";
@ -112,7 +115,7 @@ in
environment.etc."tmux.conf".text = '' environment.etc."tmux.conf".text = ''
${tmuxOptions} ${tmuxOptions}
${cfg.tmuxConfig} ${cfg.extraConfig}
source-file -q /etc/tmux.conf.local source-file -q /etc/tmux.conf.local
''; '';