Skip to content

Commit

Permalink
assertion should check for encrypted.label of the defined fileSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
garbas committed Sep 29, 2017
1 parent 63f56e0 commit 748ef34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/tasks/encrypted-devices.nix
Expand Up @@ -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
'';
Expand Down

0 comments on commit 748ef34

Please sign in to comment.