From 1c2c5e4cabba4c43504ef0f8cc3f3dfa284e2dbb Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Fri, 22 Mar 2024 19:44:27 +0100 Subject: [PATCH] home-manager: fix nix-build option `-q` The `-q` option does not actually exist, nix-build expects `--quiet`. --- home-manager/home-manager | 2 +- modules/lib-bash/activation-init.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/home-manager/home-manager b/home-manager/home-manager index 91202c877..1fa7af0e0 100644 --- a/home-manager/home-manager +++ b/home-manager/home-manager @@ -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}" diff --git a/modules/lib-bash/activation-init.sh b/modules/lib-bash/activation-init.sh index 9e5ea200f..91111e5d0 100755 --- a/modules/lib-bash/activation-init.sh +++ b/modules/lib-bash/activation-init.sh @@ -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