summaryrefslogtreecommitdiff
path: root/modules/programs/tmux.nix
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2017-10-19 22:16:09 +0200
committerDaiderd Jordan <daiderd@gmail.com>2017-10-19 22:16:09 +0200
commit78d426940a1da0ccddcaf5919cedc04ebb65b778 (patch)
tree70283ce4dc71ce506ff5f6cfa0a6b23cb9d5c8c0 /modules/programs/tmux.nix
parent061232c6dbd82f49ca0782c36825cd1c2c0aa3fe (diff)
improve descriptions for a bunch of modules
Diffstat (limited to 'modules/programs/tmux.nix')
-rw-r--r--modules/programs/tmux.nix27
1 files changed, 8 insertions, 19 deletions
diff --git a/modules/programs/tmux.nix b/modules/programs/tmux.nix
index 9b5898c..9ad9d63 100644
--- a/modules/programs/tmux.nix
+++ b/modules/programs/tmux.nix
@@ -3,7 +3,6 @@
with lib;
let
-
inherit (pkgs) stdenv;
cfg = config.programs.tmux;
@@ -36,52 +35,42 @@ let
session=$(tmux list-sessions -F '#{session_name}' | fzf --query="$1" --exit-0)
tmux switch-client -t "$session"
'';
+in
-in {
+{
options = {
-
programs.tmux.enable = mkOption {
type = types.bool;
default = false;
- description = ''
- Whether to configure tmux.
- '';
+ description = "Whether to configure tmux.";
};
programs.tmux.enableSensible = mkOption {
type = types.bool;
default = false;
example = true;
- description = ''
- Enable sensible configuration options for tmux.
- '';
+ description = "Enable sensible configuration options for tmux.";
};
programs.tmux.enableMouse = mkOption {
type = types.bool;
default = false;
example = true;
- description = ''
- Enable mouse support for tmux.
- '';
+ description = "Enable mouse support for tmux.";
};
programs.tmux.enableFzf = mkOption {
type = types.bool;
default = false;
example = true;
- description = ''
- Enable fzf keybindings for selecting tmux sessions and panes.
- '';
+ description = "Enable fzf keybindings for selecting tmux sessions and panes.";
};
programs.tmux.enableVim = mkOption {
type = types.bool;
default = false;
example = true;
- description = ''
- Enable vim style keybindings for copy mode, and navigation of tmux panes.
- '';
+ description = "Enable vim style keybindings for copy mode, and navigation of tmux panes.";
};
programs.tmux.tmuxOptions = mkOption {
@@ -93,8 +82,8 @@ in {
programs.tmux.tmuxConfig = mkOption {
type = types.lines;
default = "";
+ description = "Extra configuration to add to <filename>tmux.conf</filename>.";
};
-
};
config = mkIf cfg.enable {