forked from pub-solar/os
shell: silent nix-command check
This commit is contained in:
parent
d3f0ad14d3
commit
2f10157648
|
@ -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" "$@"
|
||||||
|
|
Loading…
Reference in a new issue