This was very helpful, thank you Layus! On Fri, Jul 1, 2016 at 1:38 AM, Layus <layus...@gmail.com> wrote:
> To build a nixos vm based on a custom configuration.nix, you use > > $ export NIXOS_CONFIG=/my/custom/configuration.nix > then > $ nix-build “/your/checkout/of/nixpkgs”/nixos -A vm; # or, preferably, > $ nixos-rebuild build-vm -I nixpkgs=/your/checkout/of/nixpkgs > > But see the excellent ML thread about building a nixos vm for testing > purposes[1]. > > Also, you may want to look at nbp’s fosdem presentation resources for > examples of minimal and modular NixOS configurations[2][3] > > Finally, as it seems that you may test networking features, note that the > vm uses kvm virtio for the network card by default. > If you need real hardware emulation, use something like: > > { > virtualisation.qemu.networkingOptions = [ > "-net nic,vlan=0,model=e1000" # Replace virtio, otherwise mptcp is > bypassed. > "-net user,vlan=0\${QEMU_NET_OPTS:+,$QEMU_NET_OPTS}" # keep the second > line. > ]; > } > > For comparison, my setup for testing inginious+linux_mptcp is attached. > > Regards, > > — Layus. > > [1] > <http://lists.science.uu.nl/pipermail/nix-dev/2016-June/thread.html#20792> > http://lists.science.uu.nl/pipermail/nix-dev/2016-June/thread.html#20792 > [2] > <https://github.com/nbp/slides/tree/master/FOSDEM/2015.Nix-NixOS-NixOps> > https://github.com/nbp/slides/tree/master/FOSDEM/2015.Nix-NixOS-NixOps > [3] <https://nbp.github.io/slides/FOSDEM/2015.Nix-NixOS-NixOps/> > https://nbp.github.io/slides/FOSDEM/2015.Nix-NixOS-NixOps/ > > On 01/07/16 02:44, Parnell Springmeyer wrote: > > Hi! I recently added setcap-wrapper functionality to nixos at awake > networks and I have contributed the changes in a fork on my own branch. > > My ask is: I'm having trouble figuring out how I should test this. > Building a package is easy but is there a formula some where for building a > nixos VM to test the setcap-wrapper functionality and my own modifications > to take ping and ping6 out of the setuid and use setcap instead? > > -- > Parnell Springmeyer > parn...@digitalmentat.com | digitalmentat.com | 0xDCCF89258EAD874A > <http://pgp.mit.edu/pks/lookup?op=get&search=0xDCCF89258EAD874A> > > > _______________________________________________ > nix-dev mailing > listnix-...@lists.science.uu.nlhttp://lists.science.uu.nl/mailman/listinfo/nix-dev > > > _______________________________________________ > nix-dev mailing list > nix-dev@lists.science.uu.nl > http://lists.science.uu.nl/mailman/listinfo/nix-dev > > -- Parnell Springmeyer parn...@digitalmentat.com | digitalmentat.com | 0xDCCF89258EAD874A <http://pgp.mit.edu/pks/lookup?op=get&search=0xDCCF89258EAD874A>
_______________________________________________ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev