1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 05:29:46 +01: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:
Robert Helgesson 2023-05-21 23:07:55 +02:00
parent 27ef11f021
commit 13a74643d7
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

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