about summary refs log tree commit diff
path: root/nixos/modules/services/web-apps/mattermost.nix
diff options
context:
space:
mode:
authorLassulus <github@lassul.us>2024-01-26 10:47:18 +0100
committerGitHub <noreply@github.com>2024-01-26 10:47:18 +0100
commitda25b2382decfe23df6a4b8e284f524c6baec78f (patch)
tree258f99c4f322eca79f1e85b6be6a0881a8039b5e /nixos/modules/services/web-apps/mattermost.nix
parent4c2c00adb9e03df33bccd6609b42cbf34ce5f09b (diff)
parentf5d513c5738e630bb053f897b789801bff078ec9 (diff)
downloadnixlib-da25b2382decfe23df6a4b8e284f524c6baec78f.tar
nixlib-da25b2382decfe23df6a4b8e284f524c6baec78f.tar.gz
nixlib-da25b2382decfe23df6a4b8e284f524c6baec78f.tar.bz2
nixlib-da25b2382decfe23df6a4b8e284f524c6baec78f.tar.lz
nixlib-da25b2382decfe23df6a4b8e284f524c6baec78f.tar.xz
nixlib-da25b2382decfe23df6a4b8e284f524c6baec78f.tar.zst
nixlib-da25b2382decfe23df6a4b8e284f524c6baec78f.zip
Merge pull request #280373 from h7x4/treewide-use-new-tmpfiles-api
treewide: use new tmpfiles API
Diffstat (limited to 'nixos/modules/services/web-apps/mattermost.nix')
-rw-r--r--nixos/modules/services/web-apps/mattermost.nix4
1 files changed, 1 insertions, 3 deletions
diff --git a/nixos/modules/services/web-apps/mattermost.nix b/nixos/modules/services/web-apps/mattermost.nix
index 503559432374..3d03c96d1c19 100644
--- a/nixos/modules/services/web-apps/mattermost.nix
+++ b/nixos/modules/services/web-apps/mattermost.nix
@@ -277,9 +277,7 @@ in
 
       # The systemd service will fail to execute the preStart hook
       # if the WorkingDirectory does not exist
-      systemd.tmpfiles.rules = [
-        ''d "${cfg.statePath}" -''
-      ];
+      systemd.tmpfiles.settings."10-mattermost".${cfg.statePath}.d = { };
 
       systemd.services.mattermost = {
         description = "Mattermost chat service";