ECryptfs

From NixOS Wiki
Revision as of 18:13, 21 August 2017 by imported>Makefu (import from nixos-users)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

eCryptfs is a cryptographic filesystem encrypting each file individually. To install ecryptfs add the following to environment.systemPackages:

{
  environment.systemPackages = [
    ecryptfs
    ecryptfs-helper
  ];
}

ecryptfs-helper contains utilities to facilitate e.g. encrypting your home folder, mounting it as user, and data recovery.

man ecryptfs-setup-private describes how to encrypt your home folder.

To automatically mount your private folder on login with PAM, add this to your config:

{
  security.pam.enableEcryptfs = true;
}