From ef63ea98f4fd69d9ebf83fda3004de2307974218 Mon Sep 17 00:00:00 2001 From: Nicolas Pierron Date: Wed, 27 Jul 2011 20:55:35 +0000 Subject: [PATCH] Experiment with dual option types (list & attribute sets). svn path=/nixos/trunk/; revision=27978 --- modules/system/upstart/upstart.nix | 2 +- modules/tasks/filesystems.nix | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/system/upstart/upstart.nix b/modules/system/upstart/upstart.nix index 7373bed5390d..368405badc76 100644 --- a/modules/system/upstart/upstart.nix +++ b/modules/system/upstart/upstart.nix @@ -322,7 +322,7 @@ in This option defines the system jobs started and managed by the Upstart daemon. ''; - type = types.attrsOf types.optionSet; + type = types.loaOf types.optionSet; options = [ jobOptions upstartJob ]; }; diff --git a/modules/tasks/filesystems.nix b/modules/tasks/filesystems.nix index 699e9b3c33ca..053597a1a5db 100644 --- a/modules/tasks/filesystems.nix +++ b/modules/tasks/filesystems.nix @@ -50,7 +50,8 @@ in mkdir -p . "; - type = types.nullOr (types.list types.optionSet); + type = types.nullOr (types.loaOf types.optionSet); + apply = x: attrValues x; options = {