We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e05582 commit f214975Copy full SHA for f214975
src/nixos_anywhere_pxe/__init__.py
@@ -18,8 +18,13 @@
18
19
FILE = Union[None, int, IO]
20
21
-NIXOS_ANYWHERE_SH = Path(__file__).parent.absolute() / "src/nixos-anywhere.sh"
22
-
+# use nixos-anywhere if available, else use unpackaged shell script for development
+NIXOS_ANYWHERE_SH = shutil.which("nixos-anywhere")
23
+if NIXOS_ANYWHERE_SH is not None:
24
+ # i prefer not having huge nix-store paths in the logs
25
+ NIXOS_ANYWHERE_SH = "nixos-anywhere"
26
+else:
27
+ NIXOS_ANYWHERE_SH = Path(__file__).parent.absolute() / "src/nixos-anywhere.sh"
28
29
30
def run(
0 commit comments