{ lib, config, ... }:
{
  config.systemd.services = lib.mkIf (config.specialisation != { }) {
    bluetooth.serviceConfig = {
      CapabilityBoundingSet = [
        ""
      ];
      NoNewPrivileges = true;
      RestrictNamespaces = "pid";
      ProtectControlGroups = true;
      ProtectKernelModules = true;
      ProtectKernelTunables = true;
      MemoryDenyWriteExecute = true;
      RestrictSUIDSGID = true;
      SystemCallArchitectures = "native";
      SystemCallFilter = "@system-service";
      LockPersonality = true;
      RestrictRealtime = true;
      ProtectProc = "invisible";
      PrivateUsers = true;
    };

    blueman-mechanism.serviceConfig = {
      CapabilityBoundingSet = [
        ""
      ];
      NoNewPrivileges = true;
      RestrictNamespaces = "pid";
      ProtectControlGroups = true;
      ProtectKernelModules = true;
      ProtectKernelTunables = true;
      MemoryDenyWriteExecute = true;
      RestrictSUIDSGID = true;
      SystemCallArchitectures = "native";
      SystemCallFilter = "@system-service";
      LockPersonality = true;
      RestrictRealtime = true;
      ProtectProc = "invisible";
      PrivateUsers = true;
    };
  };
}