assertion should check for encrypted.label of the defined fileSystem

This commit is contained in:
Rok Garbas 2017-09-25 00:45:52 +02:00
parent 63f56e0d2f
commit 748ef34f09

View File

@ -57,7 +57,7 @@ in
config = mkIf anyEncrypted {
assertions = map (dev: {
assertion = dev.label != null;
assertion = dev.encrypted.label != null;
message = ''
The filesystem for ${dev.mountPoint} has encrypted.enable set to true, but no encrypted.label set
'';