Helper for disable services

This commit is contained in:
dump_stack() 2023-01-09 22:43:15 +00:00
parent b72e9e0c2f
commit 74f1da0284
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

16
disable-services.nix Normal file
View File

@ -0,0 +1,16 @@
{ lib, ... }:
{
services."nginx".virtualHosts."lor.sh".enableACME = lib.mkForce false;
services."nginx".virtualHosts."lor.sh".forceSSL = lib.mkForce false;
systemd.services."mastodon-init-db".wantedBy = lib.mkForce [ ];
systemd.services."mastodon-init-dirs".wantedBy = lib.mkForce [ ];
systemd.services."mastodon-media-auto-remove".startAt = lib.mkForce [ ];
systemd.services."mastodon-media-auto-remove".wantedBy = lib.mkForce [ ];
systemd.services."mastodon-sidekiq".wantedBy = lib.mkForce [ ];
systemd.services."mastodon-streaming".wantedBy = lib.mkForce [ ];
systemd.services."mastodon-web".wantedBy = lib.mkForce [ ];
systemd.services."nginx".wantedBy = lib.mkForce [ ];
systemd.services."nginx-config-reload".wantedBy = lib.mkForce [ ];
systemd.services."redis-mastodon".wantedBy = lib.mkForce [ ];
}