diff options
author | Niklas Hambüchen <mail@nh2.me> | 2020-11-08 22:20:18 +0100 |
---|---|---|
committer | Niklas Hambüchen <mail@nh2.me> | 2020-11-08 22:20:18 +0100 |
commit | 91b20fb1aa6b44fbd9c9d26d62f3e956cfacda63 (patch) | |
tree | 061b4e51a67932993dcd5db931fc7a29bb071eed /nixos | |
parent | 1c460c0a5c72942ef1914c028d8758e48f2b21b4 (diff) |
roundcube service: Restart on config changes.
Until now, e.g. `extraConfig` changes did not reflect in
the system on `nixos-rebuild switch`.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/mail/roundcube.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/modules/services/mail/roundcube.nix b/nixos/modules/services/mail/roundcube.nix index a0bbab64985b..ee7aa7e22fb9 100644 --- a/nixos/modules/services/mail/roundcube.nix +++ b/nixos/modules/services/mail/roundcube.nix @@ -204,6 +204,11 @@ in }; systemd.services.phpfpm-roundcube.after = [ "roundcube-setup.service" ]; + # Restart on config changes. + systemd.services.phpfpm-roundcube.restartTriggers = [ + config.environment.etc."roundcube/config.inc.php".source + ]; + systemd.services.roundcube-setup = mkMerge [ (mkIf (cfg.database.host == "localhost") { requires = [ "postgresql.service" ]; |