aboutsummaryrefslogtreecommitdiff
path: root/modules/webapps/mastodon.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/webapps/mastodon.nix')
-rw-r--r--modules/webapps/mastodon.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/webapps/mastodon.nix b/modules/webapps/mastodon.nix
index cd550c0..2f5a8e3 100644
--- a/modules/webapps/mastodon.nix
+++ b/modules/webapps/mastodon.nix
@@ -111,6 +111,10 @@ in
111 }; 111 };
112 }; 112 };
113 113
114 systemd.slices.mastodon = {
115 description = "Mastodon slice";
116 };
117
114 systemd.services.mastodon-streaming = { 118 systemd.services.mastodon-streaming = {
115 description = "Mastodon Streaming"; 119 description = "Mastodon Streaming";
116 wantedBy = [ "multi-user.target" ]; 120 wantedBy = [ "multi-user.target" ];
@@ -137,6 +141,7 @@ in
137 ''; 141 '';
138 142
139 serviceConfig = { 143 serviceConfig = {
144 Slice = "mastodon.slice";
140 User = cfg.user; 145 User = cfg.user;
141 EnvironmentFile = cfg.configFile; 146 EnvironmentFile = cfg.configFile;
142 PrivateTmp = true; 147 PrivateTmp = true;
@@ -177,6 +182,7 @@ in
177 exec ./bin/tootctl cache clear 182 exec ./bin/tootctl cache clear
178 ''; 183 '';
179 serviceConfig = { 184 serviceConfig = {
185 Slice = "mastodon.slice";
180 User = cfg.user; 186 User = cfg.user;
181 EnvironmentFile = cfg.configFile; 187 EnvironmentFile = cfg.configFile;
182 PrivateTmp = true; 188 PrivateTmp = true;
@@ -239,6 +245,7 @@ in
239 ''; 245 '';
240 246
241 serviceConfig = { 247 serviceConfig = {
248 Slice = "mastodon.slice";
242 User = cfg.user; 249 User = cfg.user;
243 EnvironmentFile = cfg.configFile; 250 EnvironmentFile = cfg.configFile;
244 PrivateTmp = true; 251 PrivateTmp = true;