diff --git a/src/nixos-anywhere.sh b/src/nixos-anywhere.sh index d8a01f2d..644ab69a 100755 --- a/src/nixos-anywhere.sh +++ b/src/nixos-anywhere.sh @@ -429,6 +429,7 @@ importFacts() { generateHardwareConfig() { local maybeSudo="$maybeSudo" + mkdir -p "$(dirname "$hardwareConfigPath")" case "$hardwareConfigBackend" in nixos-facter) if [[ ${isInstaller} == "y" ]]; then