summary refs log tree commit diff
path: root/modules/tasks
diff options
context:
space:
mode:
authorNicolas Pierron <nicolas.b.pierron@gmail.com>2011-07-27 20:55:35 +0000
committerNicolas Pierron <nicolas.b.pierron@gmail.com>2011-07-27 20:55:35 +0000
commitef63ea98f4fd69d9ebf83fda3004de2307974218 (patch)
tree3a48d5b43e612aa43109600955f298171dcd221f /modules/tasks
parente231543033135479f1ae881c70f760845c928be0 (diff)
downloadnixpkgs-ef63ea98f4fd69d9ebf83fda3004de2307974218.tar
nixpkgs-ef63ea98f4fd69d9ebf83fda3004de2307974218.tar.gz
nixpkgs-ef63ea98f4fd69d9ebf83fda3004de2307974218.tar.bz2
nixpkgs-ef63ea98f4fd69d9ebf83fda3004de2307974218.tar.lz
nixpkgs-ef63ea98f4fd69d9ebf83fda3004de2307974218.tar.xz
nixpkgs-ef63ea98f4fd69d9ebf83fda3004de2307974218.tar.zst
nixpkgs-ef63ea98f4fd69d9ebf83fda3004de2307974218.zip
Experiment with dual option types (list & attribute sets).
svn path=/nixos/trunk/; revision=27978
Diffstat (limited to 'modules/tasks')
-rw-r--r--modules/tasks/filesystems.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/tasks/filesystems.nix b/modules/tasks/filesystems.nix
index 699e9b3c33c..053597a1a5d 100644
--- a/modules/tasks/filesystems.nix
+++ b/modules/tasks/filesystems.nix
@@ -50,7 +50,8 @@ in
         <command>mkdir -p</command> .
       ";
       
-      type = types.nullOr (types.list types.optionSet);
+      type = types.nullOr (types.loaOf types.optionSet);
+      apply = x: attrValues x;
 
       options = {