From 175f7c6c0ba4af1bd35da282bc819ddc1e9eb4ff Mon Sep 17 00:00:00 2001 From: David Morgan Date: Fri, 28 Oct 2022 16:34:18 +0100 Subject: Add nix-index --- nix-conf/home/includes/common.nix | 1 + nix-conf/home/includes/zsh.nix | 3 +++ 2 files changed, 4 insertions(+) diff --git a/nix-conf/home/includes/common.nix b/nix-conf/home/includes/common.nix index e1d9853..6d177da 100644 --- a/nix-conf/home/includes/common.nix +++ b/nix-conf/home/includes/common.nix @@ -50,5 +50,6 @@ ]; programs.gpg.enable = true; + programs.nix-index.enable = true; } diff --git a/nix-conf/home/includes/zsh.nix b/nix-conf/home/includes/zsh.nix index 2f072a5..a101ca0 100644 --- a/nix-conf/home/includes/zsh.nix +++ b/nix-conf/home/includes/zsh.nix @@ -23,6 +23,7 @@ keys = [ "id_rsa" "id_ed25519" "C171251002C200F2" ]; # extraFlags = [ "--quiet" "--ignore-missing" ]; }; + programs.command-not-found.enable = false; programs.zsh = { enable = true; enableCompletion = true; @@ -69,6 +70,8 @@ }; 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 -- cgit 1.4.1-2-gfad0