diff --git a/modules/nixos/environment/paths.nix b/modules/nixos/environment/paths.nix index 95ec74855..37ba23c3e 100644 --- a/modules/nixos/environment/paths.nix +++ b/modules/nixos/environment/paths.nix @@ -6,8 +6,7 @@ let in { # if a given shell is enabled, add the corresponding completion paths - environment.pathsToLink = - optional (if (cfg.bash ? enable) then cfg.bash.enable else false) "/share/bash-completion" - ++ optional cfg.zsh.enable "/share/zsh" - ++ optional cfg.fish.enable "/share/fish"; + environment.pathsToLink = [ + "/share/bash-completion" + ] ++ optional cfg.zsh.enable "/share/zsh" ++ optional cfg.fish.enable "/share/fish"; }