mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user