disko: enable flakes if flake was given

This commit is contained in:
lassulus 2022-11-10 12:34:45 +01:00
parent d61fd1522b
commit 90178d4391

1
disko
View file

@ -98,6 +98,7 @@ if [[ ! -z "${flake+x}" ]]; then
fi
nix_args+=("--arg" "flake" "$flake")
nix_args+=("--argstr" "flakeAttr" "$flakeAttr")
nix_args+=(--extra-experimental-features flakes)
elif [[ ! -z "${disko_config+x}" ]] && [[ -e "$disko_config" ]]; then
nix_args+=("--arg" "diskoFile" "$disko_config")
else