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.
This commit is contained in:
Timothy DeHerrera 2020-12-19 18:13:04 -07:00
parent 3a626b6cf2
commit 891fd23ec2
No known key found for this signature in database
GPG key ID: 8985725DB5B0C122

View file

@ -1,4 +1,7 @@
{ pkgs ? import <nixpkgs> { } }:
{ pkgs ? import <nixpkgs> {
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 = ''