Full Disk Encryption: Difference between revisions

Added `mode = "0600";`, otherwise the content of the file is world readable.
Line 257: Line 257:
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
{
{
  environment.etc.crypttab.text = ''
  environment.etc.crypttab = {
    cryptstorage UUID=UUID-OF-SDB /root/mykeyfile.key
    mode = "0600";
  ''
    text = ''
      # <volume-name> <encrypted-device> <key-file> [options]
      cryptstorage UUID=UUID-OF-SDB /root/mykeyfile.key
    '';
  };
}
}
</syntaxhighlight>
</syntaxhighlight>