mirror of
https://github.com/nix-community/disko.git
synced 2026-12-01 05:23:28 +01:00
accept relative paths for flakes in disko/disko-install
builtins.getFlake wants absolute paths
This commit is contained in:
1 parent
5866ae41f7
commit
a949edef70
2 files changed
+8
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user