summaryrefslogtreecommitdiffstats
path: root/nixos/modules/tasks/filesystems.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-07-30 13:15:29 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-07-30 13:18:33 +0200
commitf94f659a31d694c395cdb65e2f1925a6092d55a3 (patch)
treeb21ac22c8ef3d833bb470b4d785ae018e4bd31ff /nixos/modules/tasks/filesystems.nix
parent94ce6ec866a51ff8e520a1acc592f4de04b5759c (diff)
Don't require a device for tmpfs filesystems
Diffstat (limited to 'nixos/modules/tasks/filesystems.nix')
-rw-r--r--nixos/modules/tasks/filesystems.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/tasks/filesystems.nix b/nixos/modules/tasks/filesystems.nix
index d00f479754ff..ccb6b6160151 100644
--- a/nixos/modules/tasks/filesystems.nix
+++ b/nixos/modules/tasks/filesystems.nix
@@ -9,7 +9,7 @@ let
prioOption = prio: optionalString (prio !=null) " pri=${toString prio}";
- fileSystemOpts = { name, ... }: {
+ fileSystemOpts = { name, config, ... }: {
options = {
@@ -68,6 +68,7 @@ let
config = {
mountPoint = mkDefault name;
+ device = mkIf (config.fsType == "tmpfs") config.fsType;
};
};