about summary refs log tree commit diff
path: root/nixos/modules/services/web-apps
diff options
context:
space:
mode:
authornikstur <nikstur@outlook.com>2023-10-20 00:09:47 +0200
committernikstur <nikstur@outlook.com>2023-10-26 01:43:56 +0200
commit168b967b3224727f8789c1b9709f7c6821f26566 (patch)
tree9cf0bddc977474bd1c2cff05dd85b28d5372b9cc /nixos/modules/services/web-apps
parent1b2b1364dee8beed7168ecae05362a33df13a8fe (diff)
downloadnixlib-168b967b3224727f8789c1b9709f7c6821f26566.tar
nixlib-168b967b3224727f8789c1b9709f7c6821f26566.tar.gz
nixlib-168b967b3224727f8789c1b9709f7c6821f26566.tar.bz2
nixlib-168b967b3224727f8789c1b9709f7c6821f26566.tar.lz
nixlib-168b967b3224727f8789c1b9709f7c6821f26566.tar.xz
nixlib-168b967b3224727f8789c1b9709f7c6821f26566.tar.zst
nixlib-168b967b3224727f8789c1b9709f7c6821f26566.zip
nixos/mattermost: replace activationScript via tmpfiles
Diffstat (limited to 'nixos/modules/services/web-apps')
-rw-r--r--nixos/modules/services/web-apps/mattermost.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/services/web-apps/mattermost.nix b/nixos/modules/services/web-apps/mattermost.nix
index 66e5f1695a15..24f3b3331845 100644
--- a/nixos/modules/services/web-apps/mattermost.nix
+++ b/nixos/modules/services/web-apps/mattermost.nix
@@ -287,9 +287,9 @@ in
 
       # 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";