mirror of
https://github.com/nix-community/home-manager
synced 2024-11-10 07:04:17 +00:00
home-manager: fix nix-build option -q
The `-q` option does not actually exist, nix-build expects `--quiet`.
This commit is contained in:
parent
19b87b9ae6
commit
1c2c5e4cab
2 changed files with 2 additions and 2 deletions
|
@ -138,7 +138,7 @@ function setHomeManagerPathVariables() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_iVerbose "Sanity checking Nix"
|
_iVerbose "Sanity checking Nix"
|
||||||
nix-build -q --expr '{}' --no-out-link > /dev/null 2>&1 || true
|
nix-build --quiet --expr '{}' --no-out-link > /dev/null 2>&1 || true
|
||||||
nix-env -q > /dev/null 2>&1 || true
|
nix-env -q > /dev/null 2>&1 || true
|
||||||
|
|
||||||
declare -r globalNixStateDir="${NIX_STATE_DIR:-/nix/var/nix}"
|
declare -r globalNixStateDir="${NIX_STATE_DIR:-/nix/var/nix}"
|
||||||
|
|
|
@ -155,7 +155,7 @@ _i "Starting Home Manager activation"
|
||||||
# Verify that we can connect to the Nix store and/or daemon. This will
|
# Verify that we can connect to the Nix store and/or daemon. This will
|
||||||
# also create the necessary directories in profiles and gcroots.
|
# also create the necessary directories in profiles and gcroots.
|
||||||
_iVerbose "Sanity checking Nix"
|
_iVerbose "Sanity checking Nix"
|
||||||
nix-build --expr '{}' --no-out-link
|
nix-build --quiet --expr '{}' --no-out-link
|
||||||
|
|
||||||
# Also make sure that the Nix profiles path is created.
|
# Also make sure that the Nix profiles path is created.
|
||||||
nix-env -q > /dev/null 2>&1 || true
|
nix-env -q > /dev/null 2>&1 || true
|
||||||
|
|
Loading…
Reference in a new issue