Unverified Commit b5e62065 authored by Maximilian Bosch's avatar Maximilian Bosch Committed by GitHub
Browse files

nixos/matrix-synapse: put all services into a slice (#473257)

parents 44e789c6 f857b103
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1441,6 +1441,10 @@ in
      gid = config.ids.gids.matrix-synapse;
    };

    systemd.slices.system-synapse = {
      description = "Matrix reference homeserver";
    };

    systemd.targets.matrix-synapse = lib.mkIf hasWorkers {
      description = "Synapse Matrix parent target";
      wants = [ "network-online.target" ];
@@ -1480,6 +1484,7 @@ in
            ExecReload = "${pkgs.util-linux}/bin/kill -HUP $MAINPID";
            Restart = "on-failure";
            UMask = "0077";
            Slice = "system-synapse.slice";

            # Security Hardening
            # Refer to systemd.exec(5) for option descriptions.