Skip to content

Instantly share code, notes, and snippets.

@stigtsp
Created May 26, 2020 16:11
Show Gist options
  • Save stigtsp/3635c0885997fdfddd2812c7f7284898 to your computer and use it in GitHub Desktop.
Save stigtsp/3635c0885997fdfddd2812c7f7284898 to your computer and use it in GitHub Desktop.
# For testing services, etc. this forwards port 3000 from localhost to the container
#
# env QEMU_NET_OPTS="hostfwd=tcp::3000-:3000" NIX_PATH=nixpkgs=$HOME/nixpkgs nixos-shell
#
{ pkgs, ... }: {
boot.kernelPackages = pkgs.linuxPackages_latest;
nixos-shell.mounts = {
mountHome = false;
mountNixProfile = false;
cache = "none"; # default is "loose"
};
services.convos.enable=true;
}
@stigtsp
Copy link
Author

stigtsp commented May 26, 2020

s/container/vm/

@stigtsp
Copy link
Author

stigtsp commented May 26, 2020

CTRL-A X to shut down the qemu machine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment