From 80cab44fce29e66356a1f7d30ef46c3be5f0c2b7 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 14 Jul 2009 16:22:42 +0000 Subject: [PATCH] * Options / config: these should be attrsets, not lists (IMHO). svn path=/nixpkgs/trunk/; revision=16359 --- pkgs/lib/modules.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/lib/modules.nix b/pkgs/lib/modules.nix index 0b92462ee3e..2f1382ac93c 100644 --- a/pkgs/lib/modules.nix +++ b/pkgs/lib/modules.nix @@ -62,8 +62,8 @@ rec { selectDeclsAndDefs = modules: lib.concatMap (m: if m ? config || m ? options then - attrByPath ["options"] [] m - ++ attrByPath ["config"] [] m + [ (attrByPath ["options"] {} m) ] + ++ [ (attrByPath ["config"] {} m) ] else [ m ] ) modules;