1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 03:29:45 +01:00

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 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}"

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 # 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