From 13a74643d72b1891b03f2566983819d451bd4b56 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Sun, 21 May 2023 23:07:55 +0200 Subject: [PATCH] home-manager: fix error message in flake check Before this commit, running the hasFlakeSupport function causes an error message error: experimental Nix feature 'nix-command' is disabled; use '--extra-experimental-features nix-command' to override when the Nix installation does not support the nix tool. The error message should not be visible to the user since its just part of the Flake support check. --- home-manager/home-manager | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home-manager/home-manager b/home-manager/home-manager index 435d3be8d..f15c28d57 100644 --- a/home-manager/home-manager +++ b/home-manager/home-manager @@ -53,7 +53,7 @@ function setWorkDir() { # Checks whether the 'flakes' and 'nix-command' Nix options are enabled. function hasFlakeSupport() { type -p nix > /dev/null \ - && nix show-config \ + && nix show-config 2> /dev/null \ | grep experimental-features \ | grep flakes \ | grep -q nix-command