about summary refs log tree commit diff
path: root/modules/persistence/postfix/default.nix
blob: 19a3961ef5788e4ee43f6bfef757caf2251a4605 (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/sasl_passwd - - - - /persist/safe/var/lib/postfix/sasl_passwd"
    ];
  };
}