assertion should check for encrypted.label of the defined fileSystem

This commit is contained in:
Rok Garbas
2017-09-29 19:55:28 +02:00
parent 63f56e0d2f
commit 748ef34f09
+1 -1
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
'';