summary refs log tree commit diff
diff options
context:
space:
mode:
authorJan Malakhovski <oxij@oxij.org>2017-12-07 21:26:36 +0000
committerJan Malakhovski <oxij@oxij.org>2018-02-09 19:51:06 +0000
commiteb38b8676a3185141c49478f1a2c6374c55f27a9 (patch)
tree9b96b192288905b43497cd24d44825392a4f8caa
parent660806066abc4a64ac44b53b2b1a20f5ab4d920b (diff)
downloadnixpkgs-eb38b8676a3185141c49478f1a2c6374c55f27a9.tar
nixpkgs-eb38b8676a3185141c49478f1a2c6374c55f27a9.tar.gz
nixpkgs-eb38b8676a3185141c49478f1a2c6374c55f27a9.tar.bz2
nixpkgs-eb38b8676a3185141c49478f1a2c6374c55f27a9.tar.lz
nixpkgs-eb38b8676a3185141c49478f1a2c6374c55f27a9.tar.xz
nixpkgs-eb38b8676a3185141c49478f1a2c6374c55f27a9.tar.zst
nixpkgs-eb38b8676a3185141c49478f1a2c6374c55f27a9.zip
nixos/tmux: add related package
This is a trivial example of `relatedPackages` option usage.
-rw-r--r--nixos/modules/programs/tmux.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/nixos/modules/programs/tmux.nix b/nixos/modules/programs/tmux.nix
index 1eb6fa6bf2f..4a60403a282 100644
--- a/nixos/modules/programs/tmux.nix
+++ b/nixos/modules/programs/tmux.nix
@@ -61,7 +61,12 @@ in {
   options = {
     programs.tmux = {
 
-      enable = mkEnableOption "<command>tmux</command> - a <command>screen</command> replacement.";
+      enable = mkOption {
+        type = types.bool;
+        default = false;
+        description = "Whenever to configure <command>tmux</command> system-wide.";
+        relatedPackages = [ "tmux" ];
+      };
 
       aggressiveResize = mkOption {
         default = false;