shell: silent nix-command check

This commit is contained in:
Timothy DeHerrera 2020-12-19 18:35:33 -07:00
parent d3f0ad14d3
commit 2f10157648
No known key found for this signature in database
GPG key ID: 8985725DB5B0C122

View file

@ -27,7 +27,7 @@ pkgs.mkShell {
shellHook = '' shellHook = ''
mkdir -p secrets mkdir -p secrets
if ! nix flake show; then if ! nix flake show &> /dev/null; then
PATH=${ PATH=${
pkgs.writeShellScriptBin "nix" '' pkgs.writeShellScriptBin "nix" ''
${pkgs.nixFlakes}/bin/nix --option experimental-features "nix-command flakes ca-references" "$@" ${pkgs.nixFlakes}/bin/nix --option experimental-features "nix-command flakes ca-references" "$@"