X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fwebapps%2Fmastodon.nix;fp=modules%2Fwebapps%2Fmastodon.nix;h=2f5a8e392027016791d7d3544b27d1ccbbb174a6;hb=850adcf4b17afb6f5429b030f3c814d502d2b53e;hp=cd550c0e64cf75d81dc5694489e033df88e1597c;hpb=de6d17ec97a1946f628372e5b0854cb21a91a55f;p=perso%2FImmae%2FConfig%2FNix.git 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 }; }; + systemd.slices.mastodon = { + description = "Mastodon slice"; + }; + systemd.services.mastodon-streaming = { description = "Mastodon Streaming"; wantedBy = [ "multi-user.target" ]; @@ -137,6 +141,7 @@ in ''; serviceConfig = { + Slice = "mastodon.slice"; User = cfg.user; EnvironmentFile = cfg.configFile; PrivateTmp = true; @@ -177,6 +182,7 @@ in exec ./bin/tootctl cache clear ''; serviceConfig = { + Slice = "mastodon.slice"; User = cfg.user; EnvironmentFile = cfg.configFile; PrivateTmp = true; @@ -239,6 +245,7 @@ in ''; serviceConfig = { + Slice = "mastodon.slice"; User = cfg.user; EnvironmentFile = cfg.configFile; PrivateTmp = true;