diff --git a/home-manager/home-manager b/home-manager/home-manager index 7e7f2625f..381b1de0a 100644 --- a/home-manager/home-manager +++ b/home-manager/home-manager @@ -43,13 +43,9 @@ function setWorkDir() { fi } -# Checks whether the 'flakes' and 'nix-command' Nix options are enabled. +# Check to see if flakes are functionally available. function hasFlakeSupport() { - type -p nix > /dev/null \ - && nix show-config 2> /dev/null \ - | grep experimental-features \ - | grep flakes \ - | grep -q nix-command + nix eval --expr 'builtins.getFlake' > /dev/null 2>&1 } # Attempts to set the HOME_MANAGER_CONFIG global variable.