Skip to content

Commit

Permalink
flake.nix: nix run graphics directly
Browse files Browse the repository at this point in the history
  • Loading branch information
astro committed May 2, 2024
1 parent ac28e21 commit 8171fd6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,14 @@
TAP_INTERFACE=null
fi
RUNNER=$(${pkgs.nix}/bin/nix build \
${pkgs.nix}/bin/nix run \
-f ${./examples/graphics.nix} \
config.microvm.declaredRunner \
--arg self 'builtins.getFlake "${self}"' \
--arg system '"${system}"' \
--arg nixpkgs 'builtins.getFlake "${nixpkgs}"' \
--arg packages "\"$*\"" \
--arg tapInterface "$TAP_INTERFACE" \
--no-link --print-out-paths)
exec $RUNNER/bin/microvm-run
--arg tapInterface "$TAP_INTERFACE"
'');
};
# Run this on your host to accept Wayland connections
Expand Down

0 comments on commit 8171fd6

Please sign in to comment.