NixOS #133 (8 May)

By Nicolas Pierron

Replace "listOf attrs" by "attrsOf attrs" for options.

Option such as apache web-services, pam rules, users, groups are not modular due to the usage of list of attribute sets. Using attribute sets instead of lists would foster modularity and avoid intrusive modification of NixOS. The side effect is that you cannot add unnamed attributes in case you don't want to introduce modularity.

Another approach could be to accept both attribute set and list for option inputs where list are the unnamed version and where attribute set are the named version for the same option definition.

-- Issue on YellowGrass -- http://yellowgrass.org --

_______________________________________________
nix-commits mailing list
nix-comm...@cs.uu.nl
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to