summary refs log tree commit diff
path: root/nixos/modules/programs
diff options
context:
space:
mode:
authorTor Hedin Brønner <torhedinbronner@gmail.com>2018-02-28 14:54:52 +0100
committerTor Hedin Brønner <torhedinbronner@gmail.com>2018-02-28 19:13:02 +0100
commitc58072309c69c8ef2fddc6db15545f1cc46a38cf (patch)
tree7c1fc24fe2b3fe702d25b675223e169631129552 /nixos/modules/programs
parent30d5c7ce5667cd85b4889a5af35b91a98cebe8b1 (diff)
downloadnixlib-c58072309c69c8ef2fddc6db15545f1cc46a38cf.tar
nixlib-c58072309c69c8ef2fddc6db15545f1cc46a38cf.tar.gz
nixlib-c58072309c69c8ef2fddc6db15545f1cc46a38cf.tar.bz2
nixlib-c58072309c69c8ef2fddc6db15545f1cc46a38cf.tar.lz
nixlib-c58072309c69c8ef2fddc6db15545f1cc46a38cf.tar.xz
nixlib-c58072309c69c8ef2fddc6db15545f1cc46a38cf.tar.zst
nixlib-c58072309c69c8ef2fddc6db15545f1cc46a38cf.zip
programs/bash: install nix-bash-completions if completion is enabled
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r--nixos/modules/programs/bash/bash.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/programs/bash/bash.nix b/nixos/modules/programs/bash/bash.nix
index 1abdb4973a44..1a62f04972df 100644
--- a/nixos/modules/programs/bash/bash.nix
+++ b/nixos/modules/programs/bash/bash.nix
@@ -211,6 +211,9 @@ in
       "/share/bash-completion"
     ];
 
+    environment.systemPackages = optional cfg.enableCompletion
+      pkgs.nix-bash-completions;
+
     environment.shells =
       [ "/run/current-system/sw/bin/bash"
         "/var/run/current-system/sw/bin/bash"