Re: [Nix-dev] Testing NixOS modules.

2014-06-16 Thread Eelco Dolstra
Hi, On 16/06/14 00:57, Mateusz Kowalczyk wrote: > I just opened [1] and started to implement it, basically making > pass-through options that user can configure. > > What is the way to test NixOS modules? I don't particularly want to wait > until ‘updatedb’ is scheduled to run, perhaps I only wa

Re: [Nix-dev] Testing NixOS modules.

2014-06-16 Thread Kirill Elagin
One of the most advertised features of NixOS is the simplicity of building VMs. Just build a VM with your new modules and test it. `nixos-rebuild` has a bunch of cool options, including `nixos-rebuild build` (in case you just want to check you got all the files and symlinks right). Assertions, ye

Re: [Nix-dev] Testing NixOS modules.

2014-06-16 Thread Wout Mertens
You can do a nixos-rebuild test or a nix-build - A system. Either way you have to make sure it's using your own nixpkgs/nixos. Then you can look at the resulting cron job in the result. On Jun 16, 2014 6:57 AM, "Mateusz Kowalczyk" wrote: > Greetings, > > I just opened [1] and started to impleme

[Nix-dev] Testing NixOS modules.

2014-06-15 Thread Mateusz Kowalczyk
Greetings, I just opened [1] and started to implement it, basically making pass-through options that user can configure. What is the way to test NixOS modules? I don't particularly want to wait until ‘updatedb’ is scheduled to run, perhaps I only want to see the final command nix produces. I don'