accept relative paths for flakes in disko/disko-install

builtins.getFlake wants absolute paths
This commit is contained in:
Jörg Thalheim authored and Jörg Thalheim committed 2024-03-11 16:10:06 +01:00
1 parent 5866ae41f7
commit a949edef70
2 files changed
+8

No files matched your search

+3
View File
@@ -118,6 +118,9 @@ if [[ -n "${flake+x}" ]]; then
echo "For example, to use the output diskoConfigurations.foo from the flake.nix, append \"#foo\" to the flake-uri."
exit 1
fi
if [[ -e "$flake" ]]; then
flake=$(realpath "$flake")
fi
nix_args+=("--arg" "flake" "\"$flake\"")
nix_args+=("--argstr" "flakeAttr" "$flakeAttr")
nix_args+=(--extra-experimental-features flakes)