about summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2018-02-28 21:23:53 +0000
committerGitHub <noreply@github.com>2018-02-28 21:23:53 +0000
commit47ce3021a94ceb8ac7c4f2a8d3a8e7808c7e1bab (patch)
tree541ccdd89d0002f9231b6b606df936f5ed05d97b /nixos/modules
parent87d865232649d6ad11d7c960303fa26f441b4546 (diff)
parentc58072309c69c8ef2fddc6db15545f1cc46a38cf (diff)
downloadnixlib-47ce3021a94ceb8ac7c4f2a8d3a8e7808c7e1bab.tar
nixlib-47ce3021a94ceb8ac7c4f2a8d3a8e7808c7e1bab.tar.gz
nixlib-47ce3021a94ceb8ac7c4f2a8d3a8e7808c7e1bab.tar.bz2
nixlib-47ce3021a94ceb8ac7c4f2a8d3a8e7808c7e1bab.tar.lz
nixlib-47ce3021a94ceb8ac7c4f2a8d3a8e7808c7e1bab.tar.xz
nixlib-47ce3021a94ceb8ac7c4f2a8d3a8e7808c7e1bab.tar.zst
nixlib-47ce3021a94ceb8ac7c4f2a8d3a8e7808c7e1bab.zip
Merge pull request #36136 from hedning/nix-bash-completions-on-enableCompletion
programs/bash: install nix-bash-completions if completion is enabled
Diffstat (limited to 'nixos/modules')
-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"