From 4e33d9f26e0544ff23963fda389559f6c7c78109 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 23 Mar 2023 16:55:48 +0100 Subject: nixos: include packages to get completion --- nixos.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nixos.nix b/nixos.nix index ca4edd2..c642d80 100644 --- a/nixos.nix +++ b/nixos.nix @@ -20,11 +20,13 @@ in { programs.zsh.promptInit = ""; # Disable default prompt as we have our own programs.bash.interactiveShellInit = '' - eval $(${pkgs.shellrc-bash}/bin/shellrc-bash) + eval $(/run/current-system/sw/bin/shellrc-bash) ''; programs.zsh.interactiveShellInit = mkIf zshEnable '' - eval $(${pkgs.shellrc-zsh}/bin/shellrc-zsh) + eval $(/run/current-system/sw/bin/shellrc-zsh) ''; + + environment.systemPackages = with pkgs; [shellrc-bash] ++ (optional zshEnable shellrc-zsh); }) ]; } -- cgit v1.2.3