[Nix-dev] Re: NixOS module assertions
Nicolas Pierron
nicolas.b.pierron at gmail.com
Tue Mar 29 16:28:19 CEST 2011
On Tue, Mar 29, 2011 at 16:16, Ludovic Courtès <ludo at gnu.org> wrote:
> Hi Nicolas,
>
> Thanks for your quick response.
>
> Nicolas Pierron <nicolas.b.pierron at gmail.com> writes:
>
>> Thus, the solution to our problem is to provide a similar property
>> which handle assertions ;) This would be less hacky and would avoid
>> such errors in the future.
>>
>> config =
>> mkIf config.services.ttyBackgrounds.enable (
>> mkAssert kernelPackages.splashutils != null "
>
> So we’d have to use ‘mkAssert’ in many modules, or maybe in all modules,
> right?
Yes,
> Do you plan to make the change? :-)
they are already committed locally, still have to push them.
--
Nicolas Pierron
http://www.linkedin.com/in/nicolasbpierron - http://nbp.name/
More information about the nix-dev
mailing list