1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-01 04:23:34 +02: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 committed by Mikilio
parent 16a01943bb
commit 7f8ab774f2
No known key found for this signature in database
GPG Key ID: 5B2F1A890CF33F3F
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