From 891fd23ec20598d455beb66e67354b08d678164f Mon Sep 17 00:00:00 2001 From: Timothy DeHerrera Date: Sat, 19 Dec 2020 18:13:04 -0700 Subject: [PATCH] shell: for zsh users provide useful competion Default nix completions fail with the new nix-command interface, at least for users of zsh and direnv, this can be avoided on first startup. --- shell.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/shell.nix b/shell.nix index 18ea0e4..e792e72 100644 --- a/shell.nix +++ b/shell.nix @@ -1,4 +1,7 @@ -{ pkgs ? import { } }: +{ pkgs ? import { + overlays = [ (import ./overlays/nix-zsh-completions.nix) ]; + } +}: let configs = "${toString ./.}#nixosConfigurations"; build = "config.system.build"; @@ -19,6 +22,7 @@ pkgs.mkShell { git git-crypt rebuild + nix-zsh-completions ]; shellHook = ''