summaryrefslogtreecommitdiffstats
path: root/nixos/modules/tasks/filesystems.nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2016-09-30 15:03:33 +0200
committerEelco Dolstra <edolstra@gmail.com>2016-09-30 15:04:36 +0200
commit7e8eb6a7c3e6ccde23cbed05bf9bf3d9aa81aad7 (patch)
treefe5102b20afe408420a56521f59d1ea47b916324 /nixos/modules/tasks/filesystems.nix
parent6e785be5719a83299c78f3a597f47410d274eb50 (diff)
Fix "undefined variable ‘device’" using autoFormat
Diffstat (limited to 'nixos/modules/tasks/filesystems.nix')
-rw-r--r--nixos/modules/tasks/filesystems.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/tasks/filesystems.nix b/nixos/modules/tasks/filesystems.nix
index d47f6854e338..49ba66ad50af 100644
--- a/nixos/modules/tasks/filesystems.nix
+++ b/nixos/modules/tasks/filesystems.nix
@@ -258,7 +258,7 @@ in
let
mountPoint' = "${escapeSystemdPath fs.mountPoint}.mount";
device' = escapeSystemdPath fs.device;
- device'' = "${device}.device";
+ device'' = "${device'}.device";
in nameValuePair "mkfs-${device'}"
{ description = "Initialisation of Filesystem ${fs.device}";
wantedBy = [ mountPoint' ];