home-manager: fix nix-build option `-q`

The `-q` option does not actually exist, nix-build expects `--quiet`.
This commit is contained in:
Robert Helgesson 2024-03-22 19:44:27 +01:00
parent 19b87b9ae6
commit 1c2c5e4cab
No known key found for this signature in database
GPG Key ID: 96E745BD17AA17ED
2 changed files with 2 additions and 2 deletions

View File

@ -138,7 +138,7 @@ function setHomeManagerPathVariables() {
fi
_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
declare -r globalNixStateDir="${NIX_STATE_DIR:-/nix/var/nix}"

View File

@ -155,7 +155,7 @@ _i "Starting Home Manager activation"
# Verify that we can connect to the Nix store and/or daemon. This will
# also create the necessary directories in profiles and gcroots.
_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.
nix-env -q > /dev/null 2>&1 || true