From c58072309c69c8ef2fddc6db15545f1cc46a38cf Mon Sep 17 00:00:00 2001 From: Tor Hedin Brønner Date: Wed, 28 Feb 2018 14:54:52 +0100 Subject: programs/bash: install nix-bash-completions if completion is enabled --- nixos/modules/programs/bash/bash.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nixos/modules') 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" -- cgit 1.4.1