1 { pkgs, lib, config, ... }:
3 inherit (pkgs.lib) unlinesValues;
4 inherit (config.services) dovecot2;
5 stateDir = "/var/lib/dovecot";
8 config = lib.mkIf dovecot2.enable {
9 systemd.services.dovecot2 = {
10 preStart = unlinesValues {
12 # SEE: http://wiki2.dovecot.org/SharedMailboxes/Permissions
13 install -D -d -m 0771 \
14 -o "${dovecot2.user}" \
15 -g "${dovecot2.group}" \