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 6d6704c commit ebcd730Copy full SHA for ebcd730
src/nixos_anywhere_pxe/__init__.py
@@ -21,8 +21,13 @@
21
22
FILE = None | int | IO
23
24
-NIXOS_ANYWHERE_SH = Path(__file__).parent.absolute() / "src/nixos-anywhere.sh"
25
-
+# use nixos-anywhere if available, else use unpackaged shell script for development
+NIXOS_ANYWHERE_SH = shutil.which("nixos-anywhere")
26
+if NIXOS_ANYWHERE_SH is not None:
27
+ # i prefer not having huge nix-store paths in the logs
28
+ NIXOS_ANYWHERE_SH = "nixos-anywhere"
29
+else:
30
+ NIXOS_ANYWHERE_SH = Path(__file__).parent.absolute() / "src/nixos-anywhere.sh"
31
32
33
def run(
0 commit comments