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:
parent
3a626b6cf2
commit
891fd23ec2
|
@ -1,4 +1,7 @@
|
||||||
{ pkgs ? import <nixpkgs> { } }:
|
{ pkgs ? import <nixpkgs> {
|
||||||
|
overlays = [ (import ./overlays/nix-zsh-completions.nix) ];
|
||||||
|
}
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
configs = "${toString ./.}#nixosConfigurations";
|
configs = "${toString ./.}#nixosConfigurations";
|
||||||
build = "config.system.build";
|
build = "config.system.build";
|
||||||
|
@ -19,6 +22,7 @@ pkgs.mkShell {
|
||||||
git
|
git
|
||||||
git-crypt
|
git-crypt
|
||||||
rebuild
|
rebuild
|
||||||
|
nix-zsh-completions
|
||||||
];
|
];
|
||||||
|
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
|
|
Loading…
Reference in a new issue