Skip to content

Commit a39c3c7

Browse files
committed
flake.nix: nix run graphics directly
1 parent 6ae715e commit a39c3c7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

flake.nix

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,14 @@
6969
TAP_INTERFACE=null
7070
fi
7171
72-
RUNNER=$(${pkgs.nix}/bin/nix build \
72+
${pkgs.nix}/bin/nix run \
7373
-f ${./examples/graphics.nix} \
7474
config.microvm.declaredRunner \
7575
--arg self 'builtins.getFlake "${self}"' \
7676
--arg system '"${system}"' \
7777
--arg nixpkgs 'builtins.getFlake "${nixpkgs}"' \
7878
--arg packages "\"$*\"" \
79-
--arg tapInterface "$TAP_INTERFACE" \
80-
--no-link --print-out-paths)
81-
exec $RUNNER/bin/microvm-run
79+
--arg tapInterface "$TAP_INTERFACE"
8280
'');
8381
};
8482
# Run this on your host to accept Wayland connections

0 commit comments

Comments
 (0)