def rule(event):
    if all(
        [
            event.deep_get("type", default="") == "PATH",
            event.deep_get("nametype", default="") == "CREATE",
            any(
                [
                    any(
                        [
                            event.deep_get("name", default="").startswith(
                                "/usr/lib/systemd/system/"
                            ),
                            event.deep_get("name", default="").startswith("/etc/systemd/system/"),
                        ]
                    ),
                    "/.config/systemd/user/" in event.deep_get("name", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
