diff --git a/modules/programs/bash/bash.nix b/modules/programs/bash/bash.nix index c9332c0d9e95..8cfe3f990adc 100644 --- a/modules/programs/bash/bash.nix +++ b/modules/programs/bash/bash.nix @@ -198,6 +198,11 @@ in users.defaultUserShell = mkDefault "/run/current-system/sw/bin/bash"; + environment.pathsToLink = optionals cfg.enableCompletion [ + "/etc/bash_completion.d" + "/share/bash-completion" + ]; + environment.shells = [ "/run/current-system/sw/bin/bash" "/var/run/current-system/sw/bin/bash"