Use programs.command-not-found

This commit is contained in:
David Morgan 2022-11-05 16:17:36 +00:00
parent e38900538b
commit 68690165d7
Signed by: djm
GPG Key ID: C171251002C200F2
2 changed files with 6 additions and 4 deletions

View File

@ -57,6 +57,10 @@ in
];
programs.gpg.enable = true;
programs.nix-index.enable = true;
programs.nix-index = {
enable = true;
enableZshIntegration = false;
enableBashIntegration = false;
};
}

View File

@ -23,7 +23,7 @@
keys = [ "id_rsa" "id_ed25519" "C171251002C200F2" ];
# extraFlags = [ "--quiet" "--ignore-missing" ];
};
programs.command-not-found.enable = false;
programs.command-not-found.enable = true;
programs.zsh = {
enable = true;
enableCompletion = true;
@ -70,8 +70,6 @@
};
initExtra = ''
source ${pkgs.nix-index}/etc/profile.d/command-not-found.sh
# Taken from prezto tmux plugin
if [[ -z "$TMUX" && -z "$EMACS" && -z "$VIM" && -z "$INSIDE_EMACS" && -z "$SSH_TTY" ]]; then
tmux start-server