about summary refs log tree commit diff
path: root/modules/persistence/postfix/default.nix
blob: fd64608ec9c73222cd3fc89ed33050f384226588 (plain) (blame)
1
2
3
4
5
6
7
8
9
{ config, lib, ... }:

{
  config = lib.mkIf (with config.services.postfix; enable && mapFiles ? sasl_passwd) {
    systemd.tmpfiles.rules = [
      "L+ /var/lib/postfix - - - - /persist/safe/var/lib/postfix"
    ];
  };
}