mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00:00
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.
This commit is contained in:
parent
27ef11f021
commit
13a74643d7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue