[Nix-dev] [Nix-commits] SVN commit: nix - r33139 - nixos/trunk/modules/system/activation

Shea Levy shea at shealevy.com
Fri Mar 16 12:33:33 CET 2012


On 3/16/12 7:19 AM, Eelco Dolstra wrote:
> Hi,
>
> On 16/03/12 04:20, Shea Levy wrote:
>
>> Log:
>> Allow multiple definitions of boot.loader.kernelFile as long as they are all the same
> ...
>> +      merge = kernelFiles:
>> +        builtins.head (map (f: assert f == builtins.head kernelFiles; f)
>> +          kernelFiles);
> Wouldn't it be better to just declare the option as having type "uniq"?  That
> way there can be only one definition (of the highest priority).
>

Does this mean that only one definition is allowed at all, or that NixOS 
has some way of determining which definition to use in case multiple are 
given?

~Shea


More information about the nix-dev mailing list