From f5d513c5738e630bb053f897b789801bff078ec9 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Thu, 11 Jan 2024 22:10:18 +0100 Subject: treewide: use new tmpfiles api --- nixos/modules/services/web-apps/mattermost.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'nixos/modules/services/web-apps/mattermost.nix') diff --git a/nixos/modules/services/web-apps/mattermost.nix b/nixos/modules/services/web-apps/mattermost.nix index 5035594323749..3d03c96d1c191 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"; -- cgit 1.4.1