[Nix-dev] Re: NixOS module assertions

Ludovic Courtès ludo at gnu.org
Tue Mar 29 16:16:33 CEST 2011


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?

Do you plan to make the change?  :-)

Thanks,
Ludo’.




More information about the nix-dev mailing list