summary refs log tree commit diff
path: root/nixos/modules/services/mail/dovecot.nix
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2016-01-09 04:15:25 +0300
committerNikolay Amiantov <ab@fmap.me>2016-01-21 12:53:25 +0300
commit122929cda74f92555c40e9888c968e02611cb3e8 (patch)
tree0786e22fa163ed549cc1d8ee009b88503b46973d /nixos/modules/services/mail/dovecot.nix
parent9c7b067c6a22338b91f77638c06f1f9e545755cc (diff)
downloadnixpkgs-122929cda74f92555c40e9888c968e02611cb3e8.tar
nixpkgs-122929cda74f92555c40e9888c968e02611cb3e8.tar.gz
nixpkgs-122929cda74f92555c40e9888c968e02611cb3e8.tar.bz2
nixpkgs-122929cda74f92555c40e9888c968e02611cb3e8.tar.lz
nixpkgs-122929cda74f92555c40e9888c968e02611cb3e8.tar.xz
nixpkgs-122929cda74f92555c40e9888c968e02611cb3e8.tar.zst
nixpkgs-122929cda74f92555c40e9888c968e02611cb3e8.zip
nixos/dovecot: use systemd's RuntimeDirectory instead of creating it by ourselves
Diffstat (limited to 'nixos/modules/services/mail/dovecot.nix')
-rw-r--r--nixos/modules/services/mail/dovecot.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/nixos/modules/services/mail/dovecot.nix b/nixos/modules/services/mail/dovecot.nix
index ae9de644590..c9406a2ac51 100644
--- a/nixos/modules/services/mail/dovecot.nix
+++ b/nixos/modules/services/mail/dovecot.nix
@@ -203,8 +203,6 @@ in
       wantedBy = [ "multi-user.target" ];
 
       preStart = ''
-        mkdir -p "${baseDir}/login"
-        chown -R ${cfg.user}:${cfg.group} "${baseDir}"
         rm -f "${stateDir}/modules"
         ln -s "${modulesDir}" "${stateDir}/modules"
       '';
@@ -215,6 +213,7 @@ in
         Restart = "on-failure";
         RestartSec = "1s";
         StartLimitInterval = "1min";
+        RuntimeDirectory = [ "dovecot2" ];
       };
     };