[Nix-dev] How to test my service definition without actually "installing" it?

Matthias Beyer mail at beyermatthias.de
Thu May 14 12:29:02 CEST 2015


On 14-05-2015 11:28:24, Luca Bruno wrote:
> On 14/05/2015 11:18, Matthias Beyer wrote:
> >
> >
> > How do you do that? My approach is nixos-rebuild build-vm as someone
> > else (I guess it was Lethalman) suggested, but it fails with:
> >
> >     $ sudo nixos-rebuild build-vm -I .
> >     building Nix...
> >     building the system configuration...
> >     error: The option `services.taskserver' defined in
> `/nix/store/sz5aszzk5hn943pcw66iqy5jf21hrws4-nixos/services/taskwarrior.nix'
> does not exist.
> >     (use '--show-trace' to show detailed location information)
> >
> > unfortunately. Any pointers?
> That's really about how you added the module and that -I option that is
> suspiciously wrong.
> 

I got it "running" with

    sudo nixos-rebuild build-vm -I nixpkgs=~/dev/contrib/nixpkgs/ --fallback -j 8 --cores 8

but it actually fails to build as dependencies cannot be build. :-( 

-- 
Mit freundlichen Grüßen,
Kind regards,
Matthias Beyer

Proudly sent with mutt.
Happily signed with gnupg.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150514/46ea308c/attachment.bin 


More information about the nix-dev mailing list