assertion should check for encrypted.label of the defined fileSystem
This commit is contained in:
parent
63f56e0d2f
commit
748ef34f09
@ -57,7 +57,7 @@ in
|
|||||||
|
|
||||||
config = mkIf anyEncrypted {
|
config = mkIf anyEncrypted {
|
||||||
assertions = map (dev: {
|
assertions = map (dev: {
|
||||||
assertion = dev.label != null;
|
assertion = dev.encrypted.label != null;
|
||||||
message = ''
|
message = ''
|
||||||
The filesystem for ${dev.mountPoint} has encrypted.enable set to true, but no encrypted.label set
|
The filesystem for ${dev.mountPoint} has encrypted.enable set to true, but no encrypted.label set
|
||||||
'';
|
'';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user