nixos/mattermost: replace activationScript via tmpfiles

nikstur 168b967b 1b2b1364

Changed files
+3 -3
nixos
modules
services
web-apps
+3 -3
nixos/modules/services/web-apps/mattermost.nix
···
# The systemd service will fail to execute the preStart hook
# if the WorkingDirectory does not exist
-
system.activationScripts.mattermost = ''
-
mkdir -p "${cfg.statePath}"
-
'';
+
systemd.tmpfiles.rules = [
+
''d "${cfg.statePath}" -''
+
];
systemd.services.mattermost = {
description = "Mattermost chat service";